Skip to content

Commit

Permalink
lint noqa of flake8 errors in test_statement.py from pytest fixture.
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinbleile committed Dec 2, 2023
1 parent 0981021 commit 15e4a6e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

from graphkb import statement

from .test_match import conn
from .test_match import ( # noqa - 'F401 imported but unused' is being fooled by pytest conventions
conn,
)

EXCLUDE_INTEGRATION_TESTS = os.environ.get("EXCLUDE_INTEGRATION_TESTS") == "1"

Expand Down Expand Up @@ -86,7 +88,7 @@ def test_custom_categories(self, graphkb_conn):

@pytest.mark.skipif(EXCLUDE_INTEGRATION_TESTS, reason="excluding long running integration tests")
class TestStatementMatch:
def test_truncating_categories(self, conn):
def test_truncating_categories(self, conn): # noqa - pytest fixture, not redefinition
variant = {"@class": "CategoryVariant", "@rid": "#161:429", "displayName": "RB1 truncating"}
statements = statement.get_statements_from_variants(conn, [variant])
assert statements

0 comments on commit 15e4a6e

Please sign in to comment.