| changeset 893 | 10a19dd4e1c9 |
| parent 877 | 41ce1c341abe |
| parent 891 | 8628c590f608 |
| child 894 | cba4554e9c03 |
| 877:41ce1c341abe | 893:10a19dd4e1c9 |
|---|---|
1 # content of conftest.py |
|
2 |
|
3 import pytest |
|
4 def pytest_addoption(parser): |
|
5 parser.addoption("--runslow", action="store_true", |
|
6 help="run slow tests") |
|
7 |
|
8 def pytest_runtest_setup(item): |
|
9 if 'slow' in item.keywords and not item.config.getvalue("runslow"): |
|
10 pytest.skip("need --runslow option to run") |