mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
also expect IntegrationsPluginError
This commit is contained in:
parent
d6a42d64d8
commit
3b1bfddd8b
@ -25,6 +25,7 @@ import InvenTree.tasks
|
||||
|
||||
from stock.models import StockLocation
|
||||
from common.settings import currency_codes
|
||||
from plugin.helpers import IntegrationPluginError
|
||||
|
||||
|
||||
class ValidatorTest(TestCase):
|
||||
@ -452,6 +453,6 @@ class TestSettings(TestCase):
|
||||
self.env.set('INVENTREE_SET_USER', 'admin') # set username
|
||||
self.env.set('INVENTREE_SET_EMAIL', 'info@example.com') # set email
|
||||
self.env.set('INVENTREE_SET_PASSWORD', 'password123') # set password
|
||||
with self.assertRaises(IntegrityError):
|
||||
with self.assertRaises(IntegrityError, IntegrationPluginError):
|
||||
self.run_reload()
|
||||
self.assertEqual(user_count(), 1)
|
||||
|
Loading…
Reference in New Issue
Block a user