From 3b53260d751e0ca239e4daa02eefaea167c82c33 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 18 May 2022 11:51:14 +1000 Subject: [PATCH] Allow some variation in unit test --- InvenTree/InvenTree/tests.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/tests.py b/InvenTree/InvenTree/tests.py index 1573a4387a..9ddde26418 100644 --- a/InvenTree/InvenTree/tests.py +++ b/InvenTree/InvenTree/tests.py @@ -533,7 +533,13 @@ class TestSettings(TestCase): def test_helpers_plugin_file(self): # normal run - not configured - self.assertIn('InvenTree/InvenTree/plugins.txt', config.get_plugin_file()) + + valid = [ + 'inventree/plugins.txt', + 'inventree/dev/plugins.txt', + ] + + self.assertIn(config.get_plugin_file().lower(), valid) # with env set with self.in_env_context({'INVENTREE_PLUGIN_FILE': 'my_special_plugins.txt'}):