neuroinformatics-unit / movement

Python tools for analysing body movements across space and time
http://movement.neuroinformatics.dev
BSD 3-Clause "New" or "Revised" License
77 stars 7 forks source link

Refactor validators tests #207

Closed sfmig closed 2 weeks ago

sfmig commented 3 weeks ago

Description

What is this PR

Why is this PR needed? A suggestion to simplify the structure of the validators tests.

What does this PR do?

I also considered moving a large fixture from dataset validator tests to conftest to reduce length, but in the end I opted for keeping all together for now. But going forward we may want to organise a bit the fixtures, maybe do something like this instead (we do that in 🦀 s).

References

PR #204

How has this PR been tested?

Tests pass locally and in CI.

Is this a breaking change?

No.

Does this PR require an update to the documentation?

No.

Checklist:

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.70%. Comparing base (bba9403) to head (d6733a5).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #207 +/- ## ======================================= Coverage 99.70% 99.70% ======================================= Files 12 12 Lines 678 678 ======================================= Hits 676 676 Misses 2 2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

sfmig commented 2 weeks ago

thanks @niksirbi!

I opened an issue #222 to review the fixtures reorganisation