change the defaults from a tuple to a list so I can use config.addinivalue_line("python_files", "...") to append new options in my own plugins

This commit is contained in:
Dj Gilcrease 2014-10-02 21:32:35 +00:00
parent 05d4a3f9eb
commit a098226ee4
1 changed files with 3 additions and 3 deletions

View File

@ -124,11 +124,11 @@ def pytest_addoption(parser):
parser.addini("usefixtures", type="args", default=[],
help="list of default fixtures to be used with this project")
parser.addini("python_files", type="args",
default=('test_*.py', '*_test.py'),
default=['test_*.py', '*_test.py'],
help="glob-style file patterns for Python test module discovery")
parser.addini("python_classes", type="args", default=("Test",),
parser.addini("python_classes", type="args", default=["Test",],
help="prefixes for Python test class discovery")
parser.addini("python_functions", type="args", default=("test",),
parser.addini("python_functions", type="args", default=["test",],
help="prefixes for Python test function and method discovery")
def pytest_cmdline_main(config):