From 06e1e58110da1ed6c43ce740433ba7234b56d981 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 22 Oct 2020 20:17:34 -0700 Subject: start test coverage for web interface --- tests/test_web_search.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/test_web_search.py (limited to 'tests/test_web_search.py') diff --git a/tests/test_web_search.py b/tests/test_web_search.py new file mode 100644 index 0000000..e883325 --- /dev/null +++ b/tests/test_web_search.py @@ -0,0 +1,9 @@ +from elasticsearch_dsl import Search + +from fatcat_scholar.search import FulltextQuery, apply_filters + + +def test_apply_filters() -> None: + search = Search() + query = FulltextQuery() + apply_filters(search, query) -- cgit v1.2.3