Set authentication method when testing rights
This commit is contained in:
parent
b47505d5bd
commit
78abe39002
@ -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/")
|
||||
|
Loading…
Reference in New Issue
Block a user