Skip to content

Commit a47c98a

Browse files
authored
Merge pull request #663 from tisnik/lcore-815-fixed-issues-found-by-pyright
LCORE-815: fixed issues found by Pyright
2 parents 72453ac + fe02ae8 commit a47c98a

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

tests/unit/app/endpoints/test_config.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ async def test_config_endpoint_handler_configuration_not_loaded(mocker):
2626
)
2727
auth = ("test_user", "token", {})
2828
with pytest.raises(HTTPException) as exc_info:
29-
await config_endpoint_handler(auth=auth, request=request)
30-
29+
await config_endpoint_handler(
30+
auth=auth, request=request # pyright:ignore[reportArgumentType]
31+
)
3132
assert exc_info.value.status_code == status.HTTP_500_INTERNAL_SERVER_ERROR
3233
assert exc_info.value.detail["response"] == "Configuration is not loaded"
3334

@@ -73,6 +74,8 @@ async def test_config_endpoint_handler_configuration_loaded(mocker):
7374
}
7475
)
7576
auth = ("test_user", "token", {})
76-
response = await config_endpoint_handler(auth=auth, request=request)
77+
response = await config_endpoint_handler(
78+
auth=auth, request=request # pyright:ignore[reportArgumentType]
79+
)
7780
assert response is not None
7881
assert response == cfg.configuration

0 commit comments

Comments
 (0)