summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2019-05-13 15:34:11 +0100
committerDavid Baker <dave@matrix.org>2019-05-13 15:34:11 +0100
commit8782bfb783ef4da3882951e56d8911a1d81eada5 (patch)
tree3bb5f877734bfb7201a55df8a8369aa7e7f3a9f3
parentUpdate changelog (diff)
downloadsynapse-8782bfb783ef4da3882951e56d8911a1d81eada5.tar.xz
And now I realise why the test is failing...
-rw-r--r--tests/rest/client/v2_alpha/test_auth.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/rest/client/v2_alpha/test_auth.py b/tests/rest/client/v2_alpha/test_auth.py
index 0ca3c4657b..fa833ba5a2 100644
--- a/tests/rest/client/v2_alpha/test_auth.py
+++ b/tests/rest/client/v2_alpha/test_auth.py
@@ -92,7 +92,14 @@ class FallbackAuthTests(unittest.HomeserverTestCase):
         self.assertEqual(len(self.recaptcha_attempts), 1)
         self.assertEqual(self.recaptcha_attempts[0][0]["response"], "a")
 
-        # Now we have fufilled the recaptcha fallback step, we can then send a
+        # also complete the dummy auth
+        request, channel = self.make_request(
+            "POST", "register", {"auth": {"session": session, "type": "m.login.dummy"}}
+        )
+        self.render(request)
+
+        # Now we should have fufilled a complete auth flow, including
+        # the recaptcha fallback step, we can then send a
         # request to the register API with the session in the authdict.
         request, channel = self.make_request(
             "POST", "register", {"auth": {"session": session}}