make usefixtures appear in py.test --markers output

This commit is contained in:
holger krekel
2012-10-19 10:17:13 +02:00
parent b0b6695538
commit 586befb945
4 changed files with 12 additions and 2 deletions

View File

@@ -1445,6 +1445,12 @@ class TestMetafuncFunctional:
reprec = testdir.inline_run()
reprec.assertoutcome(passed=1)
def test_usefixtures_seen_in_showmarkers(self, testdir):
result = testdir.runpytest("--markers")
result.stdout.fnmatch_lines("""
*usefixtures(fixturename1*mark tests*fixtures*
""")
def test_generate_tests_only_done_in_subdir(self, testdir):
sub1 = testdir.mkpydir("sub1")
sub2 = testdir.mkpydir("sub2")