Comments (3)
Hi!
Thank you for the detailed report!
The deprecation warning is related to the jsonschema package used internally by Schemathesis. However, I suspect that the root cause of the issue may be something else, as the deprecation warning from jsonschema appears to be a side effect rather than the primary problem.
I think it has everything to do with HOW you run pytest and its configuration. There is the -W configuration option that makes pytest crash on certain warnings and I suspect that it is configured somewhere, as it is not the default behavior (e.g. in pyproject.toml
, pytest.ini
, etc).
Could you, please, share the configuration file you have if any?
I.e. there are tests that involve exactly the same steps as in the reproduction code + it does not reproduce on a fresh project:
Though it fails with -W error
from schemathesis.
@Stranger6667
Hi!
Thank you for your quick response and insightful feedback.
You are absolutely correct.
After receiving your response, I double-checked my pyproject.toml file and found the following configuration:
filterwarnings = [
"error",
]
The "error" setting in the filterwarnings was causing pytest to treat warnings as errors. After removing the "error" line, the tests passed successfully.
I apologize for not thoroughly verifying the issue before submitting the bug report.
The problem was indeed related to my pytest configuration and not a bug in Schemathesis itself.
Thank you for taking the time to review the report and pointing me in the right direction.
I appreciate your help and the effort you put into maintaining this project
Please feel free to close this issue as it has been resolved.
Best regards,
from schemathesis.
@K-dash no worries! I appreciate you opening an issue to solve this! :) Please, feel free to reach out to me if you have any further questions.
from schemathesis.
Related Issues (20)
- strawberry scalar of type JSON HOT 3
- [BUG] hypothesis.errors.InvalidArgument: test has already been decorated with a settings object. HOT 10
- schemathesis and fastapi with elasticsearch HOT 4
- [FEATURE] Corpus for input values
- [BUG] Parametrization incompatibility with falcon ASGI apps HOT 5
- [FEATURE] Expose the way to configure header generation
- [FEATURE] Add a __main__.py to schemathesis.cli HOT 5
- [FEATURE] Add doco on hooks.py HOT 3
- [BUG] curl code samples omit non-printable characters HOT 3
- [BUG] astroid crashes with `RecursionError` in a pytest session if schemathesis is installed HOT 1
- [BUG] pytest plugin broken and triggering warnings/missreported errors on modern pluggy HOT 1
- [BUG] Setting body after make_case() causes request to be sent without a body HOT 1
- [BUG] TypeError HOT 4
- `allow_x00=False` not affecting Headers and Cookies [BUG] HOT 4
- [BUG] HTTPConnection/HTTPSConnection is not iterable HOT 3
- [FEATURE]: Improve output on `MaxRetryError`
- Schemathesis is generating invalid payload when we use examples and value objects in openapi spec HOT 1
- Custom value for body properties HOT 1
- [BUG] console rate limiting is not working as expected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from schemathesis.