-
Notifications
You must be signed in to change notification settings - Fork 63
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
Update dependencies and adjust code #585
Update dependencies and adjust code #585
Conversation
5bf1ec3
to
87661de
Compare
|
||
await db.close() |
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.
Well, I wish, we work with database without dirtying it.
Like it's here.
https://github.com/norraxx/faf-aio-replayserver/blob/master/tests/fixtures/db_fixtures.py#L7
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.
And ofc IF we have .commit()
in code, we should mock it.
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 database connection used during tests gets rolled back. This one is just for loading the test-data file once at the start of the session. And for some reason with the newest version of pytest-asyncio having an asyc finalizer on this session scoped fixture would throw an error due to closed event loop.
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.
Do we also rollback these changes?
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.
No, the test data is not rolled back
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.
=T_T=
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 have nothing to remark :)
87661de
to
35b0bdc
Compare
35b0bdc
to
e660f2e
Compare
* Update dependencies and adjust code * Ignore hypothesis deprecation warnings on a per test basis * Make devserver command use `dev-config.yml` file.
Adjusting a few fixtures to get around the event loop being closed problem. I also ignore some deprecation warnings in the tests because they do not cause us any issues.
Closes #584.