Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Ensure initialization of the dummy context succeeded (#9451)

Mikaa5d963d47408
diff --git a/saleor/graphql/webhook/subscription_payload.py b/saleor/graphql/webhook/subscription_payload.py
index 8e11f19fad..7060253bc7 100644
--- a/saleor/graphql/webhook/subscription_payload.py
+++ b/saleor/graphql/webhook/subscription_payload.py
@@ -56,7 +56,8 @@ def initialize_context() -> HttpRequest:
handler = BaseHandler()
context = RequestFactory().request()
handler.load_middleware()
- handler.get_response(context)
+ response = handler.get_response(context)
+ assert response.status_code == 200
return context