summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service/test/support/integration/app_test_client.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/service/test/support/integration/app_test_client.py b/service/test/support/integration/app_test_client.py
index 619062a8..3a3b7ddf 100644
--- a/service/test/support/integration/app_test_client.py
+++ b/service/test/support/integration/app_test_client.py
@@ -198,7 +198,9 @@ class AppTestClient(object):
else:
self.service_factory = StubServicesFactory(self.accounts, mode)
provider = mock()
- self.resource = set_up_protected_resources(RootResource(self.service_factory), provider, self.service_factory, checker=StubSRPChecker(provider))
+ srp_checker = StubSRPChecker(provider)
+ srp_checker.add_user('username', 'password')
+ self.resource = set_up_protected_resources(RootResource(self.service_factory), provider, self.service_factory, checker=srp_checker)
@defer.inlineCallbacks
def create_user(self, account_name):