Skip to content

Commit

Permalink
fixes tsts
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Nov 20, 2024
1 parent 0678f6c commit 49c67aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions packages/models-library/src/models_library/basic_types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from decimal import Decimal
from enum import Enum
from re import Pattern
from typing import Annotated, ClassVar, Final, TypeAlias

Expand All @@ -13,9 +14,9 @@
UUID_RE,
)

assert LogLevel # nosec
assert BootModeEnum # nosec
assert BuildTargetEnum # nosec
assert issubclass(LogLevel, Enum) # nosec
assert issubclass(BootModeEnum, Enum) # nosec
assert issubclass(BuildTargetEnum, Enum) # nosec

__all__: tuple[str, ...] = (
"LogLevel",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,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("field required")
assert error["errors"][0]["message"].startswith("Field required")
assert error["errors"][0]["code"] == "missing"
assert error["errors"][0]["field"] == "order_by.field"

Expand Down

0 comments on commit 49c67aa

Please sign in to comment.