make test more precise

This commit is contained in:
Matthias 2022-05-12 00:04:37 +02:00
parent a6e889b25e
commit 699db12b24
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.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')