Skip to content

Commit 31318ff

Browse files
authored
TestKit backend: fix custom auth token deserialization (#1120)
1 parent ed1962d commit 31318ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

testkitbackend/fromtestkit.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,10 @@ def to_auth_token(data, key):
210210
auth_token["credentials"],
211211
auth_token["realm"],
212212
auth_token["scheme"],
213-
**auth_token.get("parameters", {}),
213+
**auth_token.get("parameters") or {},
214214
)
215-
auth_token.mark_item_as_read("parameters", recursive=True)
215+
if "parameters" in auth_token:
216+
auth_token.mark_item_as_read("parameters", recursive=True)
216217
return auth
217218

218219

0 commit comments

Comments
 (0)