Set authentication method when testing rights

This commit is contained in:
Guillaume Ayoub 2017-03-04 14:22:28 +01:00
parent b47505d5bd
commit 78abe39002

View File

@ -768,6 +768,8 @@ class BaseRequestsMixIn:
def test_authentication(self):
"""Test if server sends authentication request."""
self.configuration.set("auth", "type", "htpasswd")
self.configuration.set("auth", "htpasswd_filename", os.devnull)
self.configuration.set("rights", "type", "owner_only")
self.application = Application(self.configuration, self.logger)
status, headers, answer = self.request("MKCOL", "/user/")