Skip to content

Commit

Permalink
Add test_find_pathways_by_text()
Browse files Browse the repository at this point in the history
  • Loading branch information
kozo2 committed Aug 19, 2023
1 parent 9700453 commit 4658166
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_find_pathway_by_text.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#from find_pathway_by_text import find_pathways_by_text
import pytest
from pywikipathways.find_pathway_by_text import *

def test_find_pathways_by_text():
# Test with a query that should return at least one pathway
query = 'cancer'
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)
assert len(result) == 0

0 comments on commit 4658166

Please sign in to comment.