Skip to content

Commit ce47dea

Browse files
romanlutzCopilot
andcommitted
TEST: call super().__init__() in test printer fakes (CodeQL)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 547c6d5 commit ce47dea

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

tests/unit/output/scenario_result/test_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ async def test_print_summary_async_emits_deprecation_warning_and_delegates():
1919

2020
class _MinimalPrinter(ScenarioResultPrinterBase):
2121
def __init__(self) -> None:
22+
super().__init__()
2223
self.write_async = AsyncMock()
2324

2425
async def render_async(self, result: ScenarioResult) -> str:

tests/unit/output/scorer/test_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ async def render_async(
6464
def _make_complete_printer() -> ScorerPrinterBase:
6565
class CompletePrinter(ScorerPrinterBase):
6666
def __init__(self) -> None:
67+
super().__init__()
6768
self.write_async = AsyncMock()
6869

6970
def _get_objective_metrics(self, *, scorer_identifier: ComponentIdentifier):

0 commit comments

Comments
 (0)