add test back in

This commit is contained in:
Matthias 2022-03-13 22:35:46 +01:00
parent c5047e8779
commit 44a2845a75
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -453,12 +453,12 @@ class TestSettings(TestCase):
self.assertEqual(user_count(), 1)
# enough set - duplicate entry
#with self.assertRaises(IntegrityError):
# self.env.set('INVENTREE_ADMIN_USER', 'admin') # set username
# self.env.set('INVENTREE_ADMIN_EMAIL', 'info@example.com') # set email
# self.env.set('INVENTREE_ADMIN_PASSWORD', 'password123') # set password
# self.run_reload()
#self.assertEqual(user_count(), 1)
with self.assertRaises(IntegrityError):
self.env.set('INVENTREE_ADMIN_USER', 'admin') # set username
self.env.set('INVENTREE_ADMIN_EMAIL', 'info@example.com') # set email
self.env.set('INVENTREE_ADMIN_PASSWORD', 'password123') # set password
self.run_reload()
self.assertEqual(user_count(), 1)
# make sure to clean up
settings.TESTING_ENV = False