Kill the mutants of the epic description write
CI / tests (pull_request) Successful in 2m48s

This commit is contained in:
2026-11-18 10:26:23 +01:00
parent 9e47b0d566
commit 0755291112
3 changed files with 39 additions and 3 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import dataclasses
import re
import typing
from record_store.jira_description import APPROVED_SECTIONS, EpicDescription
from record_store.jira_description import EpicDescription
from failure import Failure
from text_files.markdown_text import fenced_lines
from record_store.held import Held
@@ -84,7 +84,7 @@ class EpicRecord:
def write_section(self, name: str, body: str, approved: bool = False) -> Held | Failure:
"""Writes body as the ## name section. approved says the human approved the change in an interrupt, which Goals and Audience need."""
return self.written(lambda text: with_section(text, name, body), frozenset({name} & set(APPROVED_SECTIONS)) if approved else frozenset())
return self.written(lambda text: with_section(text, name, body), frozenset({name}) if approved else frozenset())
def write_language(self, language: str) -> Held | Failure:
return self.written(lambda text: with_language(text, language), frozenset())