mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Cosmetic changes
This commit is contained in:
parent
fc180266d5
commit
db7587c593
7 changed files with 35 additions and 38 deletions
|
@ -84,10 +84,9 @@ class TestBaseAuthRequests(BaseTest):
|
|||
("😁", "🔑", False), ("😀", "", False),
|
||||
("", "🔑", False), ("", "", False))
|
||||
for user, password, valid in test_matrix:
|
||||
status, _ = self.propfind(
|
||||
"/", check=207 if valid else 401, HTTP_AUTHORIZATION=(
|
||||
"Basic %s" % base64.b64encode(
|
||||
("%s:%s" % (user, password)).encode()).decode()))
|
||||
self.propfind("/", check=207 if valid else 401,
|
||||
HTTP_AUTHORIZATION=("Basic %s" % base64.b64encode(
|
||||
("%s:%s" % (user, password)).encode()).decode()))
|
||||
|
||||
def test_htpasswd_plain(self):
|
||||
self._test_htpasswd("plain", "tmp:bepo")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue