소스 검색

Set authentication method when testing rights

Guillaume Ayoub 9 년 전
부모
커밋
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/")