Skip to content

Commit 0e0519d

Browse files
committed
fix cache test
1 parent db65ba4 commit 0e0519d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/app/test_middleware.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ def test_caching_article_count(app_client, redis_fixture):
528528
with patch("scholarag.app.middleware.get_cache", redis_fixture):
529529
# First time to put in the cache
530530
response = app_client.get(
531-
"/retrieval/article_count",
531+
"/retrieval/article_count", params={"topics": "random topic"}
532532
)
533533

534534
assert response.json() == {"article_count": 10}
@@ -589,7 +589,7 @@ def test_caching_article_listing(app_client, redis_fixture, mock_http_calls):
589589
with patch("scholarag.app.middleware.get_cache", redis_fixture):
590590
# First time to put in the cache
591591
response = app_client.get(
592-
"/retrieval/article_listing",
592+
"/retrieval/article_listing", params={"topics": "random topic"}
593593
)
594594

595595
assert response.json() == expected

0 commit comments

Comments
 (0)