Updated the documentation of the test_init test of the ConsoleCommandTestCase test case.
This commit is contained in:
parent
0614457b7b
commit
1a212a5330
@ -45,13 +45,13 @@ class ConsoleCommandTestCase(unittest.TestCase):
|
|||||||
"""The Flask application."""
|
"""The Flask application."""
|
||||||
|
|
||||||
def test_init(self) -> None:
|
def test_init(self) -> None:
|
||||||
"""Tests the "accounting-init" console command.
|
"""Tests the "accounting-init-db" console command.
|
||||||
|
|
||||||
:return: None.
|
:return: None.
|
||||||
"""
|
"""
|
||||||
with self.__app.app_context():
|
with self.__app.app_context():
|
||||||
# Drop every accounting table, to see if accounting-init recreates
|
# Drop every accounting table, to see if accounting-init-db
|
||||||
# them correctly.
|
# recreates them correctly.
|
||||||
tables: list[sa.Table] \
|
tables: list[sa.Table] \
|
||||||
= [db.metadata.tables[x] for x in db.metadata.tables
|
= [db.metadata.tables[x] for x in db.metadata.tables
|
||||||
if x.startswith("accounting_")]
|
if x.startswith("accounting_")]
|
||||||
|
Loading…
Reference in New Issue
Block a user