Просмотр исходного кода

Set authentication method when testing rights

Guillaume Ayoub 9 лет назад
Родитель
Сommit
78abe39002
1 измененных файлов с 2 добавлено и 0 удалено
  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/")