-
Notifications
You must be signed in to change notification settings - Fork 284
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
Refactor kernel manager tests for pytest #561
Conversation
assert km.context.closed | ||
|
||
|
||
class TestKernelManager: |
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 don't think the class is necessary btw. You can just define test functions directly.
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.
True. I was just keeping the classes around for organization purposes, although I did find it convenient to specify @pytest.mark.asyncio
on the TestAsyncKernelManager
declaration for its tests.
Do you want these removed and things flattened out?
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.
Nah, I agree it's helping organize here. Was just commenting in case it wasn't known. Let's merge your work :)
Should we kick off a patch release? |
Thanks for the merge @MSeal. A patch release sounds like a grand idea - thank you! |
Done |
This converts the kernel manager tests to the pytest framework.
TestParallel
was already using pytest, so this converts the other tests.The subclasses added in #560 are now used in more tests as general subclasses and a specific subclass test now exists.
Note: There was a bug uncovered in
TestParallel
which was not setting the transport correctly. As a result, thetcp
transport was used for tests that were meant to be tested using theipc
transport. Of those, the parallel thread and process tests fail usingipc
and have been temporarily skipped in this PR.