Updated the documentation of the test_init test of the ConsoleCommandTestCase test case.

This commit is contained in:
依瑪貓 2023-07-29 11:59:23 +08:00
parent 0614457b7b
commit 1a212a5330

View File

@ -45,13 +45,13 @@ class ConsoleCommandTestCase(unittest.TestCase):
"""The Flask application."""
def test_init(self) -> None:
"""Tests the "accounting-init" console command.
"""Tests the "accounting-init-db" console command.
:return: None.
"""
with self.__app.app_context():
# Drop every accounting table, to see if accounting-init recreates
# them correctly.
# Drop every accounting table, to see if accounting-init-db
# recreates them correctly.
tables: list[sa.Table] \
= [db.metadata.tables[x] for x in db.metadata.tables
if x.startswith("accounting_")]