Revised the BaseTestData class in testlib.py to add journal entries directly to the database instead of through the API, in order to allow the data to be reused, and to speed up the test.
This commit is contained in:
@ -51,8 +51,7 @@ class OffsetTestCase(unittest.TestCase):
|
||||
JournalEntryLineItem.query.delete()
|
||||
|
||||
self.client, self.csrf_token = get_client(self.app, "editor")
|
||||
self.data: OffsetTestData = OffsetTestData(
|
||||
self.app, self.client, self.csrf_token)
|
||||
self.data: OffsetTestData = OffsetTestData(self.app, "editor")
|
||||
|
||||
def test_add_receivable_offset(self) -> None:
|
||||
"""Tests to add the receivable offset.
|
||||
|
Reference in New Issue
Block a user