-
Notifications
You must be signed in to change notification settings - Fork 621
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
Fix running async psycopg tests #2540
Conversation
7b149eb
to
10b7965
Compare
64f7b48
to
f6eff5b
Compare
Will look into this today or tomorrow. |
I've tried to debug this a bit and it looks like the wrapped cursor is not used but since everything is mocked it may be just an issue with the mock themselves. |
f6eff5b
to
61f94fe
Compare
While at it remove pytes asyncio markers that are not needed when running tests in IsolatedAsyncioTestCase
Tests were not run because the test case did not await on async tests. Split tests in two testcases: one for sync tests and one for async tests.
61f94fe
to
10ab86f
Compare
The missing bits was an |
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.
Thanks for the fix
Will merge after @federicobond takes a look. |
Description
Tests were not run because the test case did not await on async tests. Split tests in two testcases: one for sync tests and one for async tests.
This is draft because a test still fails, I've fixed some trivial issues but I'm not a psycopg expert.@federicobond Could you please take a look?
Fixes #2539
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.