Skip to content

Commit

Permalink
Fix mockserver expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio committed Jun 5, 2024
1 parent a942216 commit d27ea55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/mockserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def render_POST(self, request):
# See test_sessions.py::test_param_precedence
if domain.startswith("postal-code-10001"):
postal_code = None
for action in request_data["actions"]:
for action in request_data.get("actions", []):
try:
postal_code = action["address"]["postalCode"]
except (KeyError, IndexError, TypeError):
Expand Down

0 comments on commit d27ea55

Please sign in to comment.