This repository was archived by the owner on Apr 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Tests will sometimes randomly report duplicates until the cache is cleared #39
Copy link
Copy link
Open
Labels
RISERelevant to the USBR RISE APIRelevant to the USBR RISE API
Description
Left the repo over the weekend, then came back and ran the same tests but getting duplicate issues.
Once I clear cache, they go away.
Unclear why this is an issue since the TTL is 72 hours so nothing should be expired and it should be the same data as last week when it was passing fine.
FAILED rise/lib/location_test.py::test_filter_everything_by_wkt - AssertionError: 3424 witn name Hoover Power Plant Unit N8 was found in both https://data.usbr.gov/rise/api/location?include=catalogRecords.catalogItems&itemStructureId=1&page=4&itemsPerPage=100 and https://data.usbr.gov/rise/api/location?include=catalogRecords.catalogItems&itemStructureId=1&page=3&itemsPerPage=100. You may need to clear the cache for https://data.usbr.gov/rise/api/location?include=catalogRecords.catalogItems&itemStructureId=1&page=3&itemsPerPage=100
FAILED rise/rise_edr_test.py::test_cube - AssertionError: 3424 is a duplicate with name Hoover Power Plant Unit N8 in https://data.usbr.gov/rise/api/location?include=catalogRecords.catalogItems&itemStructureId=1&page=4&itemsPerPage=100
FAILED rise/rise_edr_test.py::test_get_or_fetch_all_param_filtered_pages - AssertionError: 3424 witn name Hoover Power Plant Unit N8 was found in both https://data.usbr.gov/rise/api/location?include=catalogRecords.catalogItems&itemStructureId=1&page=4&itemsPerPage=100 and https://data.usbr.gov/rise/api/location?include=catalogRecords.catalogItems&itemStructureId=1&page=3&itemsPerPage=100. You may need to clear the cache for https://data.usbr.gov/rise/api/location?include=catalogRecords.catalogItems&itemStructureId=1&page=3&itemsPerPage=100
FAILED rise/rise_edr_test.py::test_area - AssertionError: 3424 is a duplicate with name Hoover Power Plant Unit N8 in https://data.usbr.gov/rise/api/location?include=catalogRecords.catalogItems&itemStructureId=1&page=4&itemsPerPage=100
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
RISERelevant to the USBR RISE APIRelevant to the USBR RISE API