mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 19:45:46 +00:00
fix assertation typ
This commit is contained in:
@ -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.assertRaises(DeprecationWarning):
|
with self.assertWarns(Warning):
|
||||||
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')
|
||||||
|
Reference in New Issue
Block a user