diff --git a/test/test_plugin.py b/test/test_plugin.py index 74d18db..f7bd0c7 100644 --- a/test/test_plugin.py +++ b/test/test_plugin.py @@ -16,7 +16,7 @@ class PluginTest(InvenTreeTestCase): def test_plugin_list(self): """Test plugin list API.""" - if api.api_version < 197: + if self.api.api_version < 197: return plugins = InvenTreePlugin.list(self.api) @@ -41,7 +41,7 @@ def test_plugin_list(self): def test_filter_by_active(self): """Filter by plugin active status.""" - if api.api_version < 197: + if self.api.api_version < 197: return plugins = InvenTreePlugin.list(self.api, active=True) @@ -55,7 +55,7 @@ def test_filter_by_active(self): def test_filter_by_builtin(self): """Filter by plugin builtin status.""" - if api.api_version < 197: + if self.api.api_version < 197: return plugins = InvenTreePlugin.list(self.api, builtin=True) @@ -67,7 +67,7 @@ def test_filter_by_builtin(self): def test_filter_by_mixin(self): """Test that we can filter by 'mixin' attribute.""" - if api.api_version < 197: + if self.api.api_version < 197: return n = InvenTreePlugin.count(self.api)