Pass reason to @skip decorator

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.
This commit is contained in:
Maarten ter Huurne 2023-03-21 15:21:22 +01:00
parent 1e481c4a45
commit ab8a8ae53a

View file

@ -870,7 +870,7 @@ class InheritedModelTrackerTests(ModelTrackerTests):
self.assertTrue(self.tracker.has_changed('name2'))
@skip
@skip("has known failures")
class AbstractModelTrackerTests(ModelTrackerTests):
tracked_class = TrackedAbstract