Skip to content

Commit

Permalink
get startswith test to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
sierra-moxon committed Aug 12, 2024
1 parent 75ecbfc commit 97f3bab
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test_validate_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@


@pytest.fixture
@pytest.mark.slow
def runner():
return CliRunner()


@pytest.fixture()
@pytest.mark.slow
def go_json():
url = 'http://snapshot.geneontology.org/ontology/go-basic.json'
file_path = os.path.join(os.getcwd(), 'go-basic.json')
Expand All @@ -42,7 +44,7 @@ def test_fast_function():
assert True


@pytest.fixture(params=[("goa_cow", "goa"), ("mgi", "MGI"), ("zfin", "ZFIN")], scope='session')
@pytest.fixture(params=[("goa_cow", "goa"), ("goa_chicken", "goa"), ("mgi", "MGI"), ("zfin", "ZFIN")], scope='session')
@pytest.mark.slow
def gaf_setup(request, runner, go_json):
dataset, group = request.param
Expand Down Expand Up @@ -95,7 +97,7 @@ def test_validate_resulting_gaf(gaf_setup):

@pytest.mark.slow
def test_validate_gaf():
dataset = "goa_cow"
dataset = "goa_chicken"
group = "goa"
ontology_graph = OntologyFactory().create("go", ignore_cache=True)
gaf_parser = GafParser(config=assocparser.AssocParserConfig(ontology=ontology_graph))
Expand All @@ -113,11 +115,11 @@ def test_validate_gaf():
assert len(results) > 0
for result in results:
if hasattr(result, 'subject'):
assert not result.subject.id.startswith("PR:")
assert not result.subject.id.namespace == "PR"

assert gpad_parser.version == '2.0'
assert len(gpad_results) > 0
for gpad_result in gpad_results:
if hasattr(gpad_result, 'subject'):
assert not gpad_result.subject.id.startswith("PR:")
assert not gpad_result.subject.id.namespace == "PR"

0 comments on commit 97f3bab

Please sign in to comment.