diff --git a/InvenTree/InvenTree/tests.py b/InvenTree/InvenTree/tests.py index c31dad4d95..0b50404396 100644 --- a/InvenTree/InvenTree/tests.py +++ b/InvenTree/InvenTree/tests.py @@ -24,7 +24,6 @@ import InvenTree.tasks from stock.models import StockLocation from common.settings import currency_codes -from plugin.helpers import IntegrationPluginError class ValidatorTest(TestCase): @@ -436,23 +435,3 @@ class TestSettings(TestCase): # nothing set self.assertEqual(user_count(), 0) - - # not enough set - self.env.set('INVENTREE_ADMIN_USER', 'admin') # set username - self.run_reload() - self.assertEqual(user_count(), 0) - - # enough set - 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) - - # double adding should not work - 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 - with self.assertRaises(IntegrationPluginError): - self.run_reload() - self.assertEqual(user_count(), 1)