Show known environment variables in py.test --help
This commit is contained in:
parent
5f860181b6
commit
b184f391c6
|
@ -80,8 +80,18 @@ def showhelp(config):
|
||||||
line = " %-24s %s" %(spec, help)
|
line = " %-24s %s" %(spec, help)
|
||||||
tw.line(line[:tw.fullwidth])
|
tw.line(line[:tw.fullwidth])
|
||||||
|
|
||||||
tw.line() ; tw.line()
|
tw.line()
|
||||||
#tw.sep("=")
|
tw.line("environment variables:")
|
||||||
|
vars = [
|
||||||
|
("PYTEST_ADDOPTS", "extra command line options"),
|
||||||
|
("PYTEST_PLUGINS", "comma-separated plugins to load during startup"),
|
||||||
|
("PYTEST_DEBUG", "set to enable debug tracing of pytest's internals")
|
||||||
|
]
|
||||||
|
for name, help in vars:
|
||||||
|
tw.line(" %-24s %s" % (name, help))
|
||||||
|
tw.line()
|
||||||
|
tw.line()
|
||||||
|
|
||||||
tw.line("to see available markers type: py.test --markers")
|
tw.line("to see available markers type: py.test --markers")
|
||||||
tw.line("to see available fixtures type: py.test --fixtures")
|
tw.line("to see available fixtures type: py.test --fixtures")
|
||||||
tw.line("(shown according to specified file_or_dir or current dir "
|
tw.line("(shown according to specified file_or_dir or current dir "
|
||||||
|
|
Loading…
Reference in New Issue