mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
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:
parent
1e481c4a45
commit
ab8a8ae53a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue