Skip to content

Commit 918ac61

Browse files
committed
Another shot at f-string fixes.
1 parent d470a3a commit 918ac61

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/example-pytest-selfie/tests/selfie_settings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ def web_selfie(response: TestResponse) -> StringSelfie:
1313
redirect_reason = REDIRECTS.get(response.status_code)
1414
if redirect_reason is not None:
1515
actual = Snapshot.of(
16-
f"REDIRECT {response.status_code} {redirect_reason} to "
17-
+ response.headers.get("Location")
16+
f"REDIRECT {response.status_code} {redirect_reason} to {response.headers.get("Location", "<unknown>")}"
1817
)
1918
else:
2019
actual = Snapshot.of(response.data.decode()).plus_facet(

0 commit comments

Comments
 (0)