Fix unit test

This commit is contained in:
Oliver committed 2022-05-18 12:19:10 +10:00
1 parent 3b53260d75
commit e57087de63
1 file changed
+1 -1
+1 -1
View File
@@ -539,7 +539,7 @@ class TestSettings(TestCase):
'inventree/dev/plugins.txt', 'inventree/dev/plugins.txt',
] ]
self.assertIn(config.get_plugin_file().lower(), valid) self.assertTrue(any([opt in config.get_plugin_file().lower() for opt in valid]))
# with env set # with env set
with self.in_env_context({'INVENTREE_PLUGIN_FILE': 'my_special_plugins.txt'}): with self.in_env_context({'INVENTREE_PLUGIN_FILE': 'my_special_plugins.txt'}):