Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Add more asserts to where clause test
Browse files Browse the repository at this point in the history
  • Loading branch information
olaughter committed Mar 6, 2024
1 parent f452819 commit daac258
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_search_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,14 @@ def test_yql_builder_build_where_clause():
)
where_clause = YQLBuilder(params).build_where_clause()
assert "SWE" in where_clause
assert "family_geography" in where_clause

params = SearchParameters(query_string="climate", year_range=(2000, None))
where_clause = YQLBuilder(params).build_where_clause()
assert "2000" in where_clause
assert "family_publication_year" in where_clause

params = SearchParameters(query_string="climate", year_range=(None, 2020))
where_clause = YQLBuilder(params).build_where_clause()
assert "2020" in where_clause
assert "family_publication_year" in where_clause

0 comments on commit daac258

Please sign in to comment.