also expect IntegrationsPluginError

This commit is contained in:
Matthias 2022-02-28 20:33:36 +01:00
parent d6a42d64d8
commit 3b1bfddd8b
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -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)