Skip to content

Commit a4be99b

Browse files
committed
Fix test_invalid_value
1 parent abdc0de commit a4be99b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mock_vws/_query_validators/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ def __init__(self, given_value: str) -> None:
514514
super().__init__()
515515
self.status_code = HTTPStatus.BAD_REQUEST
516516
unexpected_target_data_message = (
517-
f"Invalid value '{given_value}' in form data part "
517+
f"Invalid value '{given_value.lower()}' in form data part "
518518
"'include_target_data'. "
519519
"Expecting one of the (unquoted) string values 'all', 'none' or "
520520
"'top'."

tests/mock_vws/test_query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,8 +1155,8 @@ def test_invalid_value(
11551155
response = _query(vuforia_database=vuforia_database, body=body)
11561156

11571157
expected_text = (
1158-
f"Invalid value '{include_target_data}' in form data "
1159-
"part 'include_target_data'. "
1158+
f"Invalid value '{str(object=include_target_data).lower()}' in "
1159+
"form data part 'include_target_data'. "
11601160
"Expecting one of the (unquoted) string values 'all', 'none' or "
11611161
"'top'."
11621162
)

0 commit comments

Comments
 (0)