Blob Blame History Raw
From 6e4383a667d7a23df22e765cc72b935db5e2929c Mon Sep 17 00:00:00 2001
From: Chenxiong Qi <qcxhome@gmail.com>
Date: Mon, 14 Jun 2021 12:36:21 +0800
Subject: [PATCH 4/4] Fix wrong HTTP method for Xrds request in test

The https://accounts.ngpvan.com/Home/Xrds accepts GET but POST was set
in the test.

Signed-off-by: Chenxiong Qi <qcxhome@gmail.com>
---
 social_core/tests/backends/test_ngpvan.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/social_core/tests/backends/test_ngpvan.py b/social_core/tests/backends/test_ngpvan.py
index e5f58bbc..50e940e9 100644
--- a/social_core/tests/backends/test_ngpvan.py
+++ b/social_core/tests/backends/test_ngpvan.py
@@ -87,7 +87,7 @@ class NGPVANActionIDOpenIDTest(OpenIdTest):
 
         # Mock out the NGP VAN endpoints
         HTTPretty.register_uri(
-            HTTPretty.POST,
+            HTTPretty.GET,
             'https://accounts.ngpvan.com/Home/Xrds',
             status=200,
             body=self.discovery_body
-- 
2.31.1