mirror of
https://github.com/unclebob/crapper.git
synced 2026-11-06 18:13:50 +00:00
13 lines
402 B
Python
13 lines
402 B
Python
"""Keep a mutant from launching coverage against the project under test.
|
|
|
|
`run()` falls through into `run_coverage` when a mutant skips the help return.
|
|
That would delete `target/coverage` and recurse into this suite.
|
|
"""
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def do_not_launch_project_coverage(monkeypatch):
|
|
monkeypatch.setattr("crapper.cli.run_coverage", lambda *_args, **_kwargs: None)
|