Skip to content

Commit

Permalink
Update GO_REF test for GoRule37 for geneontology/go-site#2185
Browse files Browse the repository at this point in the history
  • Loading branch information
dustine32 committed Jan 17, 2024
1 parent 06ebfda commit 8ba7946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def test_gorule30():
assert test_result.result_type == qc.ResultType.PASS

def test_gorule37():
assoc = make_annotation(evidence="IBA", references="GOREF:0000033", assigned_by="GO_Central").associations[0]
assoc = make_annotation(evidence="IBA", references="GO_REF:0000033", assigned_by="GO_Central").associations[0]

test_result = qc.GoRule37().test(assoc, all_rules_config())
assert test_result.result_type == qc.ResultType.PASS
Expand All @@ -476,7 +476,7 @@ def test_gorule37():
test_result = qc.GoRule37().test(assoc, all_rules_config())
assert test_result.result_type == qc.ResultType.ERROR

assoc.evidence.has_supporting_reference = [Curie.from_str("GOREF:0000033")]
assoc.evidence.has_supporting_reference = [Curie.from_str("GO_REF:0000033")]
assoc.provided_by = "Pascale" # IBA, but wrong assigned_by
test_result = qc.GoRule37().test(assoc, all_rules_config())
assert test_result.result_type == qc.ResultType.ERROR
Expand Down

0 comments on commit 8ba7946

Please sign in to comment.