Skip to content

Commit acf8928

Browse files
Adding more tests and fixing small things
1 parent 0e79b81 commit acf8928

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/functional/event_handler/test_openapi_validation_middleware.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def handler() -> Decimal:
145145
# THEN the body must be a decimal as int
146146
result = app(LOAD_GW_EVENT, {})
147147
assert result["statusCode"] == 200
148-
assert result["body"] == "10"
148+
assert result["body"] == 10
149149

150150

151151
def test_validate_return_decimal_as_float():
@@ -165,7 +165,7 @@ def handler() -> Decimal:
165165
# THEN the body must be a decimal as float
166166
result = app(LOAD_GW_EVENT, {})
167167
assert result["statusCode"] == 200
168-
assert result["body"] == "10.22"
168+
assert result["body"] == 10.22
169169

170170

171171
def test_validate_return_purepath():

0 commit comments

Comments
 (0)