taverntesting / tavern

A command-line tool and Python library and Pytest plugin for automated testing of RESTful APIs, with a simple, concise and flexible YAML-based syntax
https://taverntesting.github.io/
MIT License
1.02k stars 192 forks source link

DeprecationWarning with jsonschema > 4 #897

Closed immesys closed 7 months ago

immesys commented 8 months ago

I am getting this error when running my tavern tests:

lib/python3.11/site-packages/tavern/_core/schema/jsonschema.py:85: DeprecationWarning: Passing a schema to Validator.is_valid is deprecated and will be removed in a future release. Call validator.evolve(schema=new_schema).is_valid(...) instead.

I used to be able to make this go away by installing jsonschema < 4, but now I have another dependency that requires a higher version of jsonschema.

michaelboulton commented 7 months ago

This should be fixed in the latest release