mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-06 07:18:48 +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 if depreciations raise as expected"""
|
||||||
|
|
||||||
# check deprecation warning is firing
|
# check deprecation warning is firing
|
||||||
with self.assertWarns(Warning):
|
with self.assertWarns(DeprecationWarning):
|
||||||
self.assertEqual(self.plugin_old.name, 'OldPlugin')
|
self.assertEqual(self.plugin_old.name, 'OldPlugin')
|
||||||
# check default value is used
|
# check default value is used
|
||||||
self.assertEqual(self.plugin_old.get_meta_value('ABC', 'ABCD', '123'), '123')
|
self.assertEqual(self.plugin_old.get_meta_value('ABC', 'ABCD', '123'), '123')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user