mirror of
https://github.com/elder-plinius/OBLITERATUS.git
synced 2026-08-17 16:37:30 +02:00
ci: avoid mutmut native reload crash
This commit is contained in:
+3
-1
@@ -127,7 +127,9 @@ pytest_add_cli_args_test_selection = [
|
||||
"tests/test_coverage_thresholds.py",
|
||||
"tests/test_numerical_contracts.py",
|
||||
]
|
||||
mutate_only_covered_lines = true
|
||||
# Mutating the complete bounded target set is both stronger and avoids mutmut's
|
||||
# in-process native-extension unload/reload crash during covered-line discovery.
|
||||
mutate_only_covered_lines = false
|
||||
on_dependency_change = "rerun"
|
||||
|
||||
[tool.uv]
|
||||
|
||||
@@ -2,12 +2,20 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import tomllib
|
||||
from copy import deepcopy
|
||||
from datetime import date
|
||||
from pathlib import Path
|
||||
|
||||
from scripts import check_quality_policy as quality
|
||||
|
||||
|
||||
def test_mutation_campaign_avoids_native_extension_reload_mode():
|
||||
pyproject = tomllib.loads(Path("pyproject.toml").read_text())
|
||||
|
||||
assert pyproject["tool"]["mutmut"]["mutate_only_covered_lines"] is False
|
||||
|
||||
|
||||
def _policy():
|
||||
return {
|
||||
"minimums": dict(quality.BASELINE_FLOORS),
|
||||
|
||||
Reference in New Issue
Block a user