diff --git a/scripts/mutation-gate.mjs b/scripts/mutation-gate.mjs index 436ce2e3..6e17ddbc 100644 --- a/scripts/mutation-gate.mjs +++ b/scripts/mutation-gate.mjs @@ -539,7 +539,9 @@ export const MUTANTS = [ }, { id: 'junction-limit-backend-raw-baseline', - guard: 'python3 -m pytest tests_backend/test_junction_limits.py -q', + guard: 'node scripts/backend-test-guard.mjs ' + + 'test_legacy_baseline_is_judged_after_the_same_migration ' + + 'tests_backend/test_junction_limits.py', because: 'a legacy baseline carries no wall catalogue, so judging it raw reports "no ' + 'violations" whatever its geometry and turns every inherited one into a refusal of ' + 'an unrelated edit (#329 §3, code review r1 H1)', diff --git a/test/mutation-gate.test.mjs b/test/mutation-gate.test.mjs index 730ce133..82b41318 100644 --- a/test/mutation-gate.test.mjs +++ b/test/mutation-gate.test.mjs @@ -32,11 +32,7 @@ test('every mutant patch anchors exactly once in the current source', () => { test('every guard command points at a file that exists', () => { for (const mutant of MUTANTS) { - // Гвард — не обязательно node: бэкенд-зеркала (#329) красит pytest, и - // окружение мутант-джоба его ставит. Проверяем одно: команда называет - // существующий файл, а не выдуманный путь. - const script = mutant.guard.split(' ') - .find((part) => part.endsWith('.mjs') || part.endsWith('.py')); + const script = mutant.guard.split(' ').find((part) => part.endsWith('.mjs')); assert.ok(script, `${mutant.id}: guard не называет исполняемый файл`); assert.ok(existsSync(join(repoRoot, script)), `${mutant.id}: guard-файла ${script} не существует`);