Skip to content

Commit d3cd6f5

Browse files
committed
Update test_response_mode.py
1 parent 8b671ab commit d3cd6f5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test_response_mode.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ def send_get_request():
120120
)
121121
)
122122

123-
# Verify the GET request shows welcome page (doesn't process auth code)
124-
# When no welcome_template is provided, an empty 200 response is returned
125-
self.assertEqual(response.status_code, 200, "GET request should return 200")
126-
# The key is that it doesn't set auth_response - the auth code is ignored
123+
# Verify the GET request with auth code is rejected with 400
124+
self.assertEqual(response.status_code, 400, "GET with auth code should be rejected")
125+
self.assertIn("not supported", response.text.lower(),
126+
"Error message should indicate GET is not supported")
127127

128128
receiver._scheduled_actions = [(1, send_get_request)]
129129

0 commit comments

Comments
 (0)