2009-02-27 18:18:27 +08:00
|
|
|
dist_rsync_roots = ['.'] # XXX
|
2007-01-24 22:24:01 +08:00
|
|
|
|
2009-02-27 18:18:27 +08:00
|
|
|
pytest_plugins = 'pytest_doctest', 'pytest_pytester', 'pytest_restdoc'
|
2007-02-09 07:43:27 +08:00
|
|
|
|
|
|
|
import py
|
2009-02-27 18:18:27 +08:00
|
|
|
class PylibTestPlugin:
|
|
|
|
def pytest_addoption(self, parser):
|
|
|
|
group = parser.addgroup("pylib", "py lib testing options")
|
|
|
|
group.addoption('--sshhost',
|
|
|
|
action="store", dest="sshhost", default=None,
|
2007-02-09 07:43:27 +08:00
|
|
|
help=("target to run tests requiring ssh, e.g. "
|
2009-02-27 18:18:27 +08:00
|
|
|
"user@codespeak.net"))
|
|
|
|
group.addoption('--runslowtests',
|
2008-03-01 21:43:33 +08:00
|
|
|
action="store_true", dest="runslowtests", default=False,
|
2009-02-27 18:18:27 +08:00
|
|
|
help="run slow tests")
|
|
|
|
|
|
|
|
ConftestPlugin = PylibTestPlugin
|
2007-02-09 07:43:27 +08:00
|
|
|
|