Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kozo2 committed Aug 19, 2023
1 parent 8d675dc commit e2f5433
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_find_pathway_by_text.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#from find_pathway_by_text import find_pathways_by_text
import pytest
from pywikipathways.find_pathway_by_text import *

Expand All @@ -8,6 +7,14 @@ def test_find_pathways_by_text():
result = find_pathways_by_text(query)
assert len(result) > 0

query = '5-FU'
result = find_pathways_by_text(query)
assert len(result) > 0

query = ['cancer', '5-FU']
result = find_pathways_by_text(query)
assert len(result) > 0

# Test with a query that should not return any pathways
query = 'qwertyuiop'
result = find_pathways_by_text(query)
Expand Down

0 comments on commit e2f5433

Please sign in to comment.