Tests failing periodically, especially in Github CI
jonhealy1 opened this issue · 3 comments
These tests will fail periodically. It happens more frequently in Github ci, for example when making a pr. It seems to mostly happen in python 3.11.
tests/resources/test_item.py::test_field_extension_post - IndexError: list index out of range
tests/resources/test_item.py::test_field_extension_exclude_and_include - IndexError: list index out of range
tests/resources/test_item.py::test_field_extension_exclude_default_includes - IndexError: list index out of range
Can be the reason of that failures that methods are not loading any items as others do?
https://github.com/stac-utils/stac-fastapi-elasticsearch/blob/main/stac_fastapi/elasticsearch/tests/resources/test_item.py#L373
The test you linked is an old one that is presently being ignored. Load_test_data is not always used in the tests. Tests can also use ctx.item or neither because data is created when the tests start.
Ok @jonhealy1 thanks!