mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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)
|
||||
|
||||
# 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.active = True
|
||||
plg_inactive.save()
|
||||
print('done')
|
||||
self.assertEqual(cm.warning.args[0], 'A reload was triggered')
|
||||
|
Loading…
Reference in New Issue
Block a user