Skip to content

Commit 76ba939

Browse files
committed
Expand coverage for _body_bytes methods
1 parent 727f660 commit 76ba939

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/mock_vws/fixtures/prepared_requests.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ def delete_target(
113113
date = rfc_1123_date()
114114
request_path = f"/targets/{target_id}"
115115
method = HTTPMethod.DELETE
116-
content = b""
116+
# This could be b"" or None, but we want to exercise handling
117+
# all three of those types.
118+
content = ""
117119

118120
access_key = vuforia_database.server_access_key
119121
secret_key = vuforia_database.server_secret_key
@@ -158,7 +160,9 @@ def database_summary(vuforia_database: VuforiaDatabase) -> Endpoint:
158160
request_path = "/summary"
159161
method = HTTPMethod.GET
160162

161-
content = b""
163+
# This could be b"" or "", but we want to exercise handling
164+
# all three of those types.
165+
content = None
162166

163167
access_key = vuforia_database.server_access_key
164168
secret_key = vuforia_database.server_secret_key

0 commit comments

Comments
 (0)