You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 usingtox
, I encountered failures in the main branch related totest_context_schema
functions intest_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 toJSONDecodeError
.Steps to Reproduce
git clone https://github.com/stac-utils/stac-pydantic.git
cd stac-pydantic
pip install pre-commit
pre-commit install
pip install tox
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 aJSONDecodeError
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 thetest_context_schema
function.After gathering feedback, I'm open to suggestions and will look into submitting a PR to address this issue.
The text was updated successfully, but these errors were encountered: