-
Notifications
You must be signed in to change notification settings - Fork 31
Description
Description
I noticed @vincentsarago mentioned failing tests unrelated to his PR in #136.
While setting up a development environment for stac-pydantic
and running tests using tox
, I encountered failures in the main branch related to test_context_schema
functions in test_context.py
. These failures seem to be caused by the tests receiving an HTML page instead of the expected JSON schema from a remote URL, leading to JSONDecodeError
.
Steps to Reproduce
- Clone the repository:
git clone https://github.com/stac-utils/stac-pydantic.git
- Navigate to the project directory:
cd stac-pydantic
- Install dependencies:
pip install pre-commit
pre-commit install
pip install tox
- Run tests:
tox
Expected Behavior
I expected all tests to pass, particularly those fetching a JSON schema from a specified remote URL.
Actual Behavior
The test test_context_schema
fails with a JSONDecodeError
because they received an HTML response instead of the expected JSON content. This suggests that the URL might need to be corrected or updated.
Error Log
For full error details, refer to the tox
log output concerning the test_context_schema
function.
After gathering feedback, I'm open to suggestions and will look into submitting a PR to address this issue.