Skip to content

Commit

Permalink
added tests for search_arxiv and count_articles
Browse files Browse the repository at this point in the history
  • Loading branch information
Mcilie committed Oct 26, 2023
1 parent a5029af commit 9e0c2c8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# test_utils.py
import pytest
from prompt_systematic_review.utils import *
from prompt_systematic_review.utils import search_arxiv, count_articles

def test_assert():
assert True
def test_search_arxiv():
data = search_arxiv("covid",max_results=10)
assert len(data) > 0

def test_count_articles():
data = search_arxiv("covid",max_results=10)
assert count_articles(data) == 10

0 comments on commit 9e0c2c8

Please sign in to comment.