- 
                Notifications
    You must be signed in to change notification settings 
- Fork 36
Open
Description
While configuring a local development environment I encountered a number of problems executing tests. I have fixes for each of these problems, PR here.
- poetry installfails on macOS (Apple Silicon) and Debian (AMD) with an error message citing "AttributeError: cython_sources". Fixed with- poetry update --lock.
- poetry run python admin.py build --testsfails due to- httpxdependency- cginot existing. fixed with- poetry update --lock.
- development.md documentation does not mention that poetry run python admin.py build --testsmust be executed prior to./run-tests.sh, as the test process assumes that test files are included in thebuilddirectory. Fixed with documentation update.
- ./run-tests.shreturns a 0 exit code when tests fail, potentially misleading developers expecting a non-0 exit code. Fixed by returning non-0 if present.
- Race condition observed in test_stac_api_client_functions.py due to the Flask mock API server starting in a separate process without a mechanism to wait for the server before executing tests in the main process. Test failures were unpredictable and somewhat random. Fixed with a function that polls the mock API server before returning or raising an exception.
Metadata
Metadata
Assignees
Labels
No labels