-
Notifications
You must be signed in to change notification settings - Fork 286
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
Deprecation warnings when using Pytest #571
Comments
I needed to set this env var to get around this. But this seems like a bad solution: |
Looks like this might be fixed with #576 |
@rmmcnulty9 @tomasbedrich Note that #576 only fixes the deprecation warnings related to the standard library. There are additional warnings generated by Schematics because some features are deprecated but are still being used (?). You can at least ignore those warnings passing this parameter to pytest: |
I'm personally getting a flood of warnings from schematics like this:
The only thing interesting that I think I'm doing is that I make sure that my models are automatically validated on instantiation like this:
@jesuslosada's workaround to ignore those warnings works for me, but of course I'd rather be able to have my code written so that it doesn't raise the warnings, rather than having to silence them. |
I'm also getting quite a few warnings from pytest:
|
According to this stackoverflow answer, you can also fix it to add
|
I use schematics to define models for requests and responses in simple Flask API.
However, when running tests with Pytest, I encounter many
SchematicsDeprecationWarning
warnings.The warnings are as following:
Is there something I can do in order to solve this issue? My schematics version is 2.1.0 and the issue happens with using Python 3.7.0 as well as Python 3.5.2. Thanks!
The text was updated successfully, but these errors were encountered: