Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Tests will sometimes randomly report duplicates until the cache is cleared #39

@C-Loftus

Description

@C-Loftus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    RISERelevant to the USBR RISE API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions