From 78abe390020628515c7e5394f80e279c84b70c8a Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Sat, 4 Mar 2017 14:22:28 +0100 Subject: [PATCH] Set authentication method when testing rights --- radicale/tests/test_base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radicale/tests/test_base.py b/radicale/tests/test_base.py index 31e5e7b7..381938fb 100644 --- a/radicale/tests/test_base.py +++ b/radicale/tests/test_base.py @@ -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/")