pymmcore-plus / useq-schema

An implementation agnostic schema for describing a sequence of events during a multi-dimensional imaging acquisition.
https://pymmcore-plus.github.io/useq-schema/
BSD 3-Clause "New" or "Revised" License
15 stars 5 forks source link

test: use different pattern for testing #100

Closed tlambert03 closed 1 year ago

tlambert03 commented 1 year ago

this PR changes the pattern used in test_position_sequence. I find it's hard to figure out what went wrong when a test fails (you need to do a lot of visual comparison to see exactly what was different). So this provides clearer error messages, and removes some boilerplate

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 75.00% and project coverage change: -0.12 :warning:

Comparison is base (656dcf0) 96.42% compared to head (ccc1ab9) 96.30%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #100 +/- ## ========================================== - Coverage 96.42% 96.30% -0.12% ========================================== Files 12 12 Lines 727 731 +4 ========================================== + Hits 701 704 +3 - Misses 26 27 +1 ``` | [Impacted Files](https://app.codecov.io/gh/pymmcore-plus/useq-schema/pull/100?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymmcore-plus) | Coverage Δ | | |---|---|---| | [src/useq/\_mda\_event.py](https://app.codecov.io/gh/pymmcore-plus/useq-schema/pull/100?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pymmcore-plus#diff-c3JjL3VzZXEvX21kYV9ldmVudC5weQ==) | `86.44% <75.00%> (-0.84%)` | :arrow_down: |

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