-
Notifications
You must be signed in to change notification settings - Fork 222
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
modify tests to not raise deprecation warnings #1047
Conversation
9b72a6c
to
743c1c8
Compare
@@ -1136,7 +1136,7 @@ async def inspect_collection( | |||
return inspection_result | |||
|
|||
@classmethod | |||
def check_hidden_fields(cls): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imho this should not be public method
@@ -197,118 +297,38 @@ async def session(cli): | |||
await s.end_session() | |||
|
|||
|
|||
@pytest.fixture() | |||
async def deprecated_init_beanie(db): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i wanted to explicitly separate deprecated usages from not deprecated ones
i also added assertions those deprecations are actualy raised
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the other review covered what i would change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
743c1c8
to
cc49c2a
Compare
with warnings.catch_warnings(record=True) as w: | ||
warnings.simplefilter("always") | ||
|
||
await init_beanie( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one slight "issue" is that now init_beanie
will be executed twice (but I guess this is fine), since there is an autouse init
fixture in this file as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes geting rid of auto use would be hard.... i am fully aware of it...
No description provided.