2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 05:25:42 +00:00

Unit test speed improvements (#4463)

* Unit test speed improvements

- Move from insantiating data in setUp to setUpTestData

* Update UserMixin class for API testing

* Bunch of test updates

* Further test updates

* Test fixes

* Add allowances for exchange rate server not responding

* Fixes for group role test
This commit is contained in:
Oliver
2023-03-08 15:22:08 +11:00
committed by GitHub
parent 9c594ed52b
commit 2dfea9b825
20 changed files with 258 additions and 180 deletions

View File

@ -27,9 +27,10 @@ class LabelTest(InvenTreeAPITestCase):
'stock'
]
def setUp(self) -> None:
@classmethod
def setUpTestData(cls):
"""Ensure that some label instances exist as part of init routine"""
super().setUp()
super().setUpTestData()
apps.get_app_config('label').create_labels()
def test_default_labels(self):