extend --help to tell about --markers and --funcargs
This commit is contained in:
parent
465cfff6f9
commit
81082ed3d3
|
@ -79,6 +79,8 @@ def showhelp(config):
|
||||||
|
|
||||||
tw.line() ; tw.line()
|
tw.line() ; tw.line()
|
||||||
#tw.sep("=")
|
#tw.sep("=")
|
||||||
|
tw.line("to see available markers type: py.test --markers")
|
||||||
|
tw.line("to see available funcargs type: py.test --funcargs")
|
||||||
return
|
return
|
||||||
|
|
||||||
tw.line("conftest.py options:")
|
tw.line("conftest.py options:")
|
||||||
|
|
|
@ -17,11 +17,13 @@ def test_version(testdir, pytestconfig):
|
||||||
def test_help(testdir):
|
def test_help(testdir):
|
||||||
result = testdir.runpytest("--help")
|
result = testdir.runpytest("--help")
|
||||||
assert result.ret == 0
|
assert result.ret == 0
|
||||||
result.stdout.fnmatch_lines([
|
result.stdout.fnmatch_lines("""
|
||||||
"*-v*verbose*",
|
*-v*verbose*
|
||||||
"*setup.cfg*",
|
*setup.cfg*
|
||||||
"*minversion*",
|
*minversion*
|
||||||
])
|
*to see*markers*py.test --markers*
|
||||||
|
*to see*funcargs*py.test --funcargs*
|
||||||
|
""")
|
||||||
|
|
||||||
def test_collectattr():
|
def test_collectattr():
|
||||||
class A:
|
class A:
|
||||||
|
|
Loading…
Reference in New Issue