mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 19:45:46 +00:00
Fix unit test
This commit is contained in:
@ -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'}):
|
||||||
|
Reference in New Issue
Block a user