From 027f51763e6eb204096a8b96252efb99724990a9 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Fri, 5 Sep 2014 23:41:18 -0700 Subject: Unit tests do not need captchas. --- tests/rest/test_events.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/rest/test_events.py b/tests/rest/test_events.py index 1dccf4c503..fd2224f55f 100644 --- a/tests/rest/test_events.py +++ b/tests/rest/test_events.py @@ -145,6 +145,7 @@ class EventStreamPermissionsTestCase(RestTestCase): ) self.ratelimiter = hs.get_ratelimiter() self.ratelimiter.send_message.return_value = (True, 0) + hs.config.enable_registration_captcha = False hs.get_handlers().federation_handler = Mock() -- cgit 1.5.1 From ea5b5b1f648699105dd929ea276ee907eb3d82da Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Sat, 6 Sep 2014 07:44:00 +0100 Subject: Fix state unit test --- tests/test_state.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/test_state.py b/tests/test_state.py index a1f5ee869b..b01496c40f 100644 --- a/tests/test_state.py +++ b/tests/test_state.py @@ -240,6 +240,7 @@ class StateTestCase(unittest.TestCase): @defer.inlineCallbacks def test_new_event(self): event = Mock() + event.event_id = "12123123@test" state_pdu = new_fake_pdu_entry("C", "test", "mem", "x", "A", 20) -- cgit 1.5.1