mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
add test back in
This commit is contained in:
parent
c5047e8779
commit
44a2845a75
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user