mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
make test more precise
This commit is contained in:
parent
a6e889b25e
commit
699db12b24
@ -158,7 +158,7 @@ class InvenTreePluginTests(TestCase):
|
||||
"""Check if depreciations raise as expected"""
|
||||
|
||||
# check deprecation warning is firing
|
||||
with self.assertWarns(Warning):
|
||||
with self.assertWarns(DeprecationWarning):
|
||||
self.assertEqual(self.plugin_old.name, 'OldPlugin')
|
||||
# check default value is used
|
||||
self.assertEqual(self.plugin_old.get_meta_value('ABC', 'ABCD', '123'), '123')
|
||||
|
Loading…
Reference in New Issue
Block a user