Skip to content

Pass reason to @skip decorator#595

Merged
foarsitter merged 1 commit intojazzband:masterfrom
ProtixIT:skip-reason
Mar 22, 2024
Merged

Pass reason to @skip decorator#595
foarsitter merged 1 commit intojazzband:masterfrom
ProtixIT:skip-reason

Conversation

@mthuurne
Copy link
Contributor

The @skip decorator works without an argument as well, but that is an undocumented feature of unittest.skip() that is not understood by mypy and pytest.

In the case of pytest, it ignored the decorated class during test collection, instead of collecting it and marking it as skipped.

The decorator works without an argument as well, but that is an
undocumented feature of `unittest.skip()` that is not understood
by mypy and pytest.

In the case of pytest, it ignored the decorated class during test
collection, instead of collecting it and marking it as skipped.
@codecov
Copy link

codecov bot commented Mar 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.57%. Comparing base (1e481c4) to head (ab8a8ae).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #595   +/-   ##
=======================================
  Coverage   98.57%   98.57%           
=======================================
  Files           6        6           
  Lines         773      773           
=======================================
  Hits          762      762           
  Misses         11       11           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mthuurne mthuurne mentioned this pull request Mar 22, 2024
@foarsitter foarsitter merged commit aaf93c9 into jazzband:master Mar 22, 2024
@mthuurne mthuurne deleted the skip-reason branch March 25, 2024 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants