remove new helper

This commit is contained in:
Matthias 2022-03-13 22:35:14 +01:00
parent 4e6c5f90f7
commit c5047e8779
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 8 additions and 8 deletions

View File

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

View File

@ -86,8 +86,8 @@ def handle_error(error, do_raise: bool = True, do_log: bool = True, log_name: st
if do_raise: if do_raise:
# do a straight raise if we are playing with enviroment variables at execution time, ignore the broken sample # do a straight raise if we are playing with enviroment variables at execution time, ignore the broken sample
if settings.TESTING_ENV and package_name != 'integration.broken_sample': #if settings.TESTING_ENV and package_name != 'integration.broken_sample':
raise error # raise error
raise IntegrationPluginError(package_name, str(error)) raise IntegrationPluginError(package_name, str(error))
# endregion # endregion