2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 04:26:44 +00:00

add ENVs back in

This commit is contained in:
Matthias 2022-03-02 22:49:05 +01:00
parent 48583f470c
commit 2c6731df0c
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -432,6 +432,11 @@ class TestSettings(TestCase):
def test_set_user_to_few(self): def test_set_user_to_few(self):
# add shortcut # add shortcut
user_count = self.user_mdl.objects.count user_count = self.user_mdl.objects.count
# enable testing mode
settings.TESTING_ENV = True
# nothing set # nothing set
self.assertEqual(user_count(), 0) self.assertEqual(user_count(), 0)
# make sure to clean up
settings.TESTING_ENV = False