Reputation: 1763
I am using pytest and hope to check:
Is it possible to conditionally skip/fail tests (grouped in class) in setup?
Upvotes: 0
Views: 901
Reputation: 11939
You can call pytest.skip(...)
and pytest.fail(...)
there. See "Imperative xfail from within a test or setup function" in the docs.
Upvotes: 2