Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariana Barzinpour committed May 21, 2024
1 parent 8b9f426 commit 1ea7c69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration_tests/test_page_loads.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,9 @@ def test_search_time_completion(client: FlaskClient):
assert len(search_results) == 4

# if not provided as a span, it should become a span of one day
html = get_html(client, "/datasets/ga_ls8c_ard_3?time=2022-02-14")
assert one_element(html, "#search-time-before").attrs["value"] == "2022-02-14"
assert one_element(html, "#search-time-after").attrs["value"] == "2022-02-15"
html = get_html(client, "/datasets/ga_ls8c_ard_3?time=2022-07-18")
assert one_element(html, "#search-time-before").attrs["value"] == "2022-07-18"
assert one_element(html, "#search-time-after").attrs["value"] == "2022-07-18"
search_results = html.find(".search-result a")
assert len(search_results) == 2

Expand Down

0 comments on commit 1ea7c69

Please sign in to comment.