From da3b7ae7d08e0b6b44fda1bac89e5fe08d8c53cf Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 11 May 2022 23:57:21 +0200 Subject: [PATCH] fix assertation typ --- InvenTree/plugin/test_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/plugin/test_plugin.py b/InvenTree/plugin/test_plugin.py index 4a55b35d69..a8251226ee 100644 --- a/InvenTree/plugin/test_plugin.py +++ b/InvenTree/plugin/test_plugin.py @@ -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')