From 200506e5555b9acfa7d93f2a6822f64ba3b57223 Mon Sep 17 00:00:00 2001 From: Cyber MacGeddon Date: Sat, 12 Jul 2025 21:59:02 +0100 Subject: [PATCH] Rev gateway tests --- tests/unit/test_gateway/test_service.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_gateway/test_service.py b/tests/unit/test_gateway/test_service.py index 8cfc1517..746d5284 100644 --- a/tests/unit/test_gateway/test_service.py +++ b/tests/unit/test_gateway/test_service.py @@ -184,7 +184,11 @@ class TestApi: api = Api(port=8080) api.run() - mock_run_app.assert_called_once_with(api.app_factory(), port=8080) + # Verify run_app was called once with the correct port + mock_run_app.assert_called_once() + args, kwargs = mock_run_app.call_args + assert len(args) == 1 # Should have one positional arg (the coroutine) + assert kwargs == {'port': 8080} # Should have port keyword arg def test_api_components_initialization(self): """Test that all API components are properly initialized"""