From 699db12b240a02fd11cd11830961f9d5c2376030 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 12 May 2022 00:04:37 +0200 Subject: [PATCH] make test more precise --- 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 a72067cb12..a722704a91 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.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')