pymmcore-plus / napari-micromanager

GUI interface between napari and micromanager powered by pymmcore-plus and pymmcore-widgets
https://pymmcore-plus.github.io/napari-micromanager/
BSD 3-Clause "New" or "Revised" License
61 stars 21 forks source link

test: add `mda_sequence` parametrized fixture #230

Closed tlambert03 closed 1 year ago

tlambert03 commented 1 year ago

this adds a new mda_sequence fixture in conftest that should be used when we want to test something (such as MDA acquisition) across a handful of MDAs.

Note, I can't update the explorer widget in this PR since it's widget doesn't have a set_state method.... will do in a followup

cc @fdrgsp ... you could use this fixture in #225 to get a handful of MDA sequence objects

codecov[bot] commented 1 year ago

Codecov Report

Base: 84.73% // Head: 84.48% // Decreases project coverage by -0.25% :warning:

Coverage data is based on head (dfe84f4) compared to base (6941374). Patch coverage: 90.69% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #230 +/- ## ========================================== - Coverage 84.73% 84.48% -0.26% ========================================== Files 13 13 Lines 996 999 +3 ========================================== Hits 844 844 - Misses 152 155 +3 ``` | [Impacted Files](https://codecov.io/gh/pymmcore-plus/napari-micromanager/pull/230?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymmcore-plus) | Coverage Δ | | |---|---|---| | [...rc/napari\_micromanager/\_gui\_objects/\_mda\_widget.py](https://codecov.io/gh/pymmcore-plus/napari-micromanager/pull/230/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymmcore-plus#diff-c3JjL25hcGFyaV9taWNyb21hbmFnZXIvX2d1aV9vYmplY3RzL19tZGFfd2lkZ2V0LnB5) | `90.38% <83.33%> (-1.39%)` | :arrow_down: | | [...cromanager/\_gui\_objects/\_sample\_explorer\_widget.py](https://codecov.io/gh/pymmcore-plus/napari-micromanager/pull/230/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymmcore-plus#diff-c3JjL25hcGFyaV9taWNyb21hbmFnZXIvX2d1aV9vYmplY3RzL19zYW1wbGVfZXhwbG9yZXJfd2lkZ2V0LnB5) | `94.01% <100.00%> (ø)` | | | [src/napari\_micromanager/\_mda\_meta.py](https://codecov.io/gh/pymmcore-plus/napari-micromanager/pull/230/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymmcore-plus#diff-c3JjL25hcGFyaV9taWNyb21hbmFnZXIvX21kYV9tZXRhLnB5) | `100.00% <100.00%> (ø)` | | | [src/napari\_micromanager/\_util.py](https://codecov.io/gh/pymmcore-plus/napari-micromanager/pull/230/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymmcore-plus#diff-c3JjL25hcGFyaV9taWNyb21hbmFnZXIvX3V0aWwucHk=) | `76.00% <100.00%> (-5.25%)` | :arrow_down: | | [src/napari\_micromanager/main\_window.py](https://codecov.io/gh/pymmcore-plus/napari-micromanager/pull/230/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymmcore-plus#diff-c3JjL25hcGFyaV9taWNyb21hbmFnZXIvbWFpbl93aW5kb3cucHk=) | `95.54% <100.00%> (-0.23%)` | :arrow_down: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymmcore-plus). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymmcore-plus)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.