simplify test_conftest_found_with_double_dash() test code
This commit is contained in:
parent
73bc6bacfa
commit
3b85e0c3a9
|
@ -270,11 +270,7 @@ def test_conftest_found_with_double_dash(testdir):
|
||||||
parser.addoption("--hello-world", action="store_true")
|
parser.addoption("--hello-world", action="store_true")
|
||||||
"""))
|
"""))
|
||||||
p = sub.join("test_hello.py")
|
p = sub.join("test_hello.py")
|
||||||
p.write(py.std.textwrap.dedent("""
|
p.write("def test_hello(): pass")
|
||||||
import pytest
|
|
||||||
def test_hello(found):
|
|
||||||
assert found == 1
|
|
||||||
"""))
|
|
||||||
result = testdir.runpytest(str(p) + "::test_hello", "-h")
|
result = testdir.runpytest(str(p) + "::test_hello", "-h")
|
||||||
result.stdout.fnmatch_lines("""
|
result.stdout.fnmatch_lines("""
|
||||||
*--hello-world*
|
*--hello-world*
|
||||||
|
|
Loading…
Reference in New Issue