fix assertation typ

This commit is contained in:
Matthias 2022-05-11 23:57:21 +02:00
parent c274228806
commit da3b7ae7d0
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -158,7 +158,7 @@ class InvenTreePluginTests(TestCase):
"""Check if depreciations raise as expected"""
# check deprecation warning is firing
with self.assertRaises(DeprecationWarning):
with self.assertWarns(Warning):
self.assertEqual(self.plugin_old.name, 'OldPlugin')
# check default value is used
self.assertEqual(self.plugin_old.get_meta_value('ABC', 'ABCD', '123'), '123')