(config, items)
| 40 | |
| 41 | |
| 42 | def pytest_collection_modifyitems(config, items): |
| 43 | if config.getoption("--enable-integration"): |
| 44 | return |
| 45 | marker = pytest.mark.skip(reason="need --enable-integration option to run") |
| 46 | for item in items: |
| 47 | if "integration" in item.keywords: |
| 48 | item.add_marker(marker) |
| 49 | |
| 50 | |
| 51 | @pytest.fixture |
nothing calls this directly
no outgoing calls
no test coverage detected