Git Product home page Git Product logo

Comments (3)

Stranger6667 avatar Stranger6667 commented on June 12, 2024

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:

image

Though it fails with -W error

image

from schemathesis.

K-dash avatar K-dash commented on June 12, 2024

@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.

Stranger6667 avatar Stranger6667 commented on June 12, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.