Explorar el Código

Set authentication method when testing rights

Guillaume Ayoub hace 9 años
padre
commit
78abe39002
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      radicale/tests/test_base.py

+ 2 - 0
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/")