Added the "populate" method to the BaseTestData class, and changed it so that the tests need to call the "populate" method to populate the data, so that it may return the data with populating the database in the future.

This commit is contained in:
2023-04-12 12:28:34 +08:00
parent 3bada28b8f
commit 85d1b13ccd
4 changed files with 23 additions and 12 deletions

View File

@ -52,6 +52,7 @@ class OffsetTestCase(unittest.TestCase):
self.client, self.csrf_token = get_client(self.app, "editor")
self.data: OffsetTestData = OffsetTestData(self.app, "editor")
self.data.populate()
def test_add_receivable_offset(self) -> None:
"""Tests to add the receivable offset.