-
Notifications
You must be signed in to change notification settings - Fork 152
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
attached to a different loop #957
Comments
@krasoffka Can you post the output of |
seifertm
added
the
needsinfo
Requires additional information from the issue author
label
Oct 15, 2024
|
Thanks! I'm pretty certain this is a duplicate of #950. When the event_loop fixture is torn down, _session_event_loop gets messed up. That's why your tests run when you remove test_func_scope.py. |
seifertm
added
bug
duplicate
and removed
needsinfo
Requires additional information from the issue author
labels
Oct 15, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I have a problem with run tests, and I don't know is it bug or I do something wrong.
I use async grpc server and async sqlalchemy in project, and want to write integration test.
I write next fixtures(see code below)
setup_db - migrate on db scope='session' - one time for all tests
session - session db scope='function' - one for every test
grpc_server - start grpc server scope='session', loop_scope='session' - one time for all integration tests
stub - stub for grpc request scope='session', loop_scope='session'
I have 2 pack of tests - 2 files
test_func_scope.py
test_session_scope.py
tests with db session fixture works fine!
but my test with grpc server writes me error.
But if I remove test_func_scope.py test_stub1 works fine.
and one more remark
If I change
to
and
to
it comes down to the line
await stub.Test(TestRequest(x=1))
and freeze
The text was updated successfully, but these errors were encountered: