-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
tests: remove private magicgui access in tests #5331
Conversation
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.
awesome, thanks for taking the time to clear up here!
Codecov Report
@@ Coverage Diff @@
## main #5331 +/- ##
=======================================
Coverage 89.08% 89.09%
=======================================
Files 582 582
Lines 49311 49310 -1
=======================================
+ Hits 43929 43932 +3
+ Misses 5382 5378 -4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
But if I understand correctly, the whole test should be removed based on its description:
|
I can do that too if that's what you prefer |
ok removed |
This reverts commit 7a15c41.
I had to revert the removal since unrelated tests (
I have never quite understood where those seemingly magic expectation numbers come from... it appears that in general/historicall we just change them to make tests pass... which kinda defeats the purpose of the test. It's out of scope for this PR. Sorry @Czaki. |
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.
It's out of scope for this PR. Sorry @Czaki.
Ah. There is a test that uses the side effect of another test to pass... Maybe we should have a test turn that runs each test in an independent python interpreter?
In the context of this PR I'm fine, but it would be nice if you could update the docstring of test function to reflect that it is for validate if the expected magicgui widget is returned.
exactly, and it's just generally been updated to make it pass given whatever the current side effects are 😂 ... that whole test should probably be removed/refactored. it doesn't appear to be a complicated thing to check, but it needs to be redesigned (in another PR) |
* test: remove private magicgui access * remove full test * Revert "remove full test" This reverts commit 7a15c41. * fix magicgui.widgets namespace * update docstring
* test: remove private magicgui access * remove full test * Revert "remove full test" This reverts commit 7a15c41. * fix magicgui.widgets namespace * update docstring
* test: remove private magicgui access * remove full test * Revert "remove full test" This reverts commit 7a15c41. * fix magicgui.widgets namespace * update docstring
* test: remove private magicgui access * remove full test * Revert "remove full test" This reverts commit 7a15c41. * fix magicgui.widgets namespace * update docstring
* test: remove private magicgui access * remove full test * Revert "remove full test" This reverts commit 7a15c41. * fix magicgui.widgets namespace * update docstring
* test: remove private magicgui access * remove full test * Revert "remove full test" This reverts commit 7a15c41. * fix magicgui.widgets namespace * update docstring
* test: remove private magicgui access * remove full test * Revert "remove full test" This reverts commit 7a15c41. * fix magicgui.widgets namespace * update docstring
Description
This removes a reference to a private module-level variable in magicgui that is going to be moved in pyapp-kit/magicgui#497. It's only used in the tests, and the specific test (resolution of forward references) is well tested on the magicgui side at this point. So simply removing it is fine