diff --git a/InvenTree/InvenTree/tests.py b/InvenTree/InvenTree/tests.py index 0b50404396..f65f4c3952 100644 --- a/InvenTree/InvenTree/tests.py +++ b/InvenTree/InvenTree/tests.py @@ -432,6 +432,11 @@ class TestSettings(TestCase): def test_set_user_to_few(self): # add shortcut user_count = self.user_mdl.objects.count + # enable testing mode + settings.TESTING_ENV = True # nothing set self.assertEqual(user_count(), 0) + + # make sure to clean up + settings.TESTING_ENV = False