-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document that the dependency marker may be applied to a class as a
whole. Close #39.
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import pytest | ||
|
||
|
||
@pytest.mark.dependency() | ||
@pytest.mark.xfail(reason="deliberate fail") | ||
def test_f(): | ||
assert False | ||
|
||
|
||
@pytest.mark.dependency(depends=["test_f"]) | ||
class TestClass(object): | ||
|
||
def test_a(self): | ||
pass | ||
|
||
@pytest.mark.dependency() | ||
def test_b(self): | ||
pass | ||
|
||
def test_c(self): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters