Skip to content

Commit

Permalink
Merge pull request #112 from bcgsc/lint_updates
Browse files Browse the repository at this point in the history
lint noqa of flake8 errors in test_statement.py from pytest fixture.
  • Loading branch information
dustinbleile authored Dec 4, 2023
2 parents 0981021 + 0226e47 commit 219bf8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include_trailing_comma = true
[metadata]
name = graphkb
url = https://github.com/bcgsc/pori_graphkb_python
version = 1.13.0
version = 1.14.0
author_email = [email protected]
description = python adapter for interacting with the GraphKB API
long_description = file: README.md
Expand Down
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 219bf8d

Please sign in to comment.