Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed May 14, 2024
1 parent a8e6cf4 commit 893ba5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 893ba5a

Please sign in to comment.