File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99# Ensure tests never depend on a developer's real OpenRouter key from .env.
1010os .environ .setdefault ("OPENROUTER_API_KEY" , "test-openrouter-api-key-1234567890" )
11+
12+ try :
13+ import jsonschema
14+ from jsonschema .exceptions import _RefResolutionError
15+
16+ if "RefResolutionError" not in jsonschema .__dict__ :
17+ jsonschema .RefResolutionError = _RefResolutionError # type: ignore[attr-defined]
18+ except Exception :
19+ pass
Original file line number Diff line number Diff line change @@ -36,4 +36,4 @@ filterwarnings =
3636 #
3737 # Example (uncomment if needed):
3838 # ignore::DeprecationWarning:some_third_party_lib.*
39- ignore:jsonschema\.exceptions\.RefResolutionError is deprecated.*:DeprecationWarning:schemathesis\.generation\.coverage
39+ ignore:jsonschema\.exceptions\.RefResolutionError is deprecated.*:DeprecationWarning
You can’t perform that action at this time.
0 commit comments