-
-
Notifications
You must be signed in to change notification settings - Fork 421
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
Add testing for drag and drop events/behavior on QtLayerList
#6699
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6699 +/- ##
==========================================
- Coverage 92.44% 92.39% -0.05%
==========================================
Files 614 614
Lines 54843 54878 +35
==========================================
+ Hits 50697 50707 +10
- Misses 4146 4171 +25 ☔ View full report in Codecov by Sentry. |
@dalthviz can you clarify, when running locally with |
Hi! It should be done automatically (the mouse mouvement and drag&drop action over the widget should be done without you needing to do any manual action) 🤔 If you are checking locally on a machine with macOS, could you give the terminal app |
That did the trick! Pretty amazing! (BTW that seems wrong doesn't it?
I know I get windows showing when running locally and it's more than 5... Maybe I'm misunderstanding) |
Awesome 🎉
That makes sense and I think I will add a comment over the test docstring to clarify that there too 👍 Also, could make sense to add in the docs the usage of
I think some changes have been done to update that at napari/docs#370 so if you check the page from the dev/latest version of the docs (https://napari.org/dev/developers/contributing/testing.html#running-tests) you see a more up to date phrasing like:
Which I think reflects the current test suite state regarding showing GUI elements when running it (indeed more than 5 tests showing GUI elements) |
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.
Love it. Makes sense and I checked it locally too -- the new docstring is great, one tiny nitpick/question.
I made a few comments to the partner docs PR -- thanks for taking care of that!
Co-authored-by: Peter Sobolewski <76622105+psobolewskiPhD@users.noreply.github.com>
…sions setup on macOS (#375) # Description Add info related with tests that use `pyautogui` and the `skip_local_focus` decorator like the one being done at napari/napari#6699 --------- Co-authored-by: Peter Sobolewski <76622105+psobolewskiPhD@users.noreply.github.com>
Note: Test fails with PySide6 6.3.1 but passes with PySide6 6.3.2 on Linux when checking locally. Source of segfault seems connected to the wait done with qtbot? 🤔 |
But what python version? |
I was checking with Python 3.10 indeed
Thanks for linking the place where the constraint was done (I was actually unsure why the tests were constrained to that specific PySide6 version on Python 3.9 👍) |
References and relevant issues
Closes #1411
Description
Add a test for the layer list drag and drop behavior (use
pyautogui
and theskip_local_focus
decorator):