From fe02ae8c6496a1595160c356bda6183a60cc1fb0 Mon Sep 17 00:00:00 2001 From: Pavel Tisnovsky Date: Mon, 13 Oct 2025 09:38:44 +0200 Subject: [PATCH] LCORE-815: fixed issues found by Pyright --- tests/unit/app/endpoints/test_config.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/unit/app/endpoints/test_config.py b/tests/unit/app/endpoints/test_config.py index eb3f4993d..ac1dd31cc 100644 --- a/tests/unit/app/endpoints/test_config.py +++ b/tests/unit/app/endpoints/test_config.py @@ -26,8 +26,9 @@ async def test_config_endpoint_handler_configuration_not_loaded(mocker): ) auth = ("test_user", "token", {}) with pytest.raises(HTTPException) as exc_info: - await config_endpoint_handler(auth=auth, request=request) - + await config_endpoint_handler( + auth=auth, request=request # pyright:ignore[reportArgumentType] + ) assert exc_info.value.status_code == status.HTTP_500_INTERNAL_SERVER_ERROR assert exc_info.value.detail["response"] == "Configuration is not loaded" @@ -73,6 +74,8 @@ async def test_config_endpoint_handler_configuration_loaded(mocker): } ) auth = ("test_user", "token", {}) - response = await config_endpoint_handler(auth=auth, request=request) + response = await config_endpoint_handler( + auth=auth, request=request # pyright:ignore[reportArgumentType] + ) assert response is not None assert response == cfg.configuration