mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-03 22:08:49 +00:00
also check message
This commit is contained in:
parent
f8e51c0873
commit
2c83728f71
@ -146,8 +146,8 @@ class PluginDetailAPITest(InvenTreeAPITestCase):
|
|||||||
self.assertDictContainsSubset({'base':{'key':'base', 'human_name':'base'}}, mixin_dict)
|
self.assertDictContainsSubset({'base':{'key':'base', 'human_name':'base'}}, mixin_dict)
|
||||||
|
|
||||||
# check reload on save
|
# check reload on save
|
||||||
with self.assertWarns(Warning('A reload was triggered')):
|
with self.assertWarns(Warning) as cm:
|
||||||
plg_inactive = fixtures.filter(active=False).first()
|
plg_inactive = fixtures.filter(active=False).first()
|
||||||
plg_inactive.active = True
|
plg_inactive.active = True
|
||||||
plg_inactive.save()
|
plg_inactive.save()
|
||||||
print('done')
|
self.assertEqual(cm.warning.args[0], 'A reload was triggered')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user