From 6459c406b00984c1906f0a83ca748d91d13835f2 Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Wed, 9 Sep 2026 11:29:42 +0530 Subject: [PATCH] test(gateway): fold the null/missing display cases into one parametrized test --- tests/gateway/test_display_null_turn_wiring.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/gateway/test_display_null_turn_wiring.py b/tests/gateway/test_display_null_turn_wiring.py index 8279a72722..19bcec8145 100644 --- a/tests/gateway/test_display_null_turn_wiring.py +++ b/tests/gateway/test_display_null_turn_wiring.py @@ -10,6 +10,8 @@ from __future__ import annotations import types +import pytest + from gateway.run_turn_runner import TurnRunner @@ -53,13 +55,9 @@ def _wire(user_config): return agent -def test_present_but_null_display_falls_back_to_on(): - agent = _wire({"display": None}) - assert agent.memory_notifications == "on" - - -def test_missing_display_falls_back_to_on(): - agent = _wire({}) +@pytest.mark.parametrize("user_config", [{"display": None}, {}]) +def test_null_or_missing_display_falls_back_to_on(user_config): + agent = _wire(user_config) assert agent.memory_notifications == "on"