Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes [unit] webserver 03 and [unit] settings-library (both mypy and tests) #6773

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,7 @@ async def test_list_service_usage(
assert mock_export_usage_services.called
args = mock_export_usage_services.call_args[1]

assert args["order_by"] == OrderBy.model_validate(_order_by)
assert (
args["order_by"].model_dump() == OrderBy.model_validate(_order_by).model_dump()
)
assert args["filters"] == ServiceResourceUsagesFilters.model_validate(_filter)
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ async def test_list_service_usage_with_order_by_query_param(
_, error = await assert_status(resp, status.HTTP_422_UNPROCESSABLE_ENTITY)
assert mock_list_usage_services.called
assert error["status"] == status.HTTP_422_UNPROCESSABLE_ENTITY
assert error["errors"][0]["message"].startswith("Invalid JSON")
assert "Invalid JSON" in error["errors"][0]["message"]

# with order by without direction
_filter = {"field": "started_at"}
Expand Down
Loading