Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update validategeojson that used deprecated code #680

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

gschwind
Copy link
Collaborator

Overview

Currently test fail with:

tests/validator/test_complexvalidators.py::ValidateTest::test_geojson_validator
/home/gschwind/projects/pywps/pywps/validator/complexvalidator.py:287: DeprecationWarning: jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
resolver = jsonschema.RefResolver(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

This patch update the code to follow Warning recommandation

Related Issue / Discussion

Additional Information

Contribution Agreement

(as per https://github.com/geopython/pywps/blob/master/CONTRIBUTING.rst#contributions-and-licensing)

  • I'd like to contribute [feature X|bugfix Y|docs|something else] to PyWPS. I confirm that my contributions to PyWPS will be compatible with the PyWPS license guidelines at the time of contribution.
  • I have already previously agreed to the PyWPS Contributions and Licensing Guidelines

@gschwind gschwind mentioned this pull request Sep 19, 2023
2 tasks
@cehbrecht cehbrecht self-requested a review October 30, 2023 12:57
@cehbrecht
Copy link
Collaborator

test failure not related to this PR

@cehbrecht cehbrecht merged commit 9e21b93 into geopython:main Oct 30, 2023
1 of 6 checks passed
@cehbrecht cehbrecht mentioned this pull request Oct 30, 2023
2 tasks
@gschwind gschwind deleted the pr-update-validategeojson branch October 30, 2023 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants