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):
# 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