mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-13 18:50:53 +00:00
make mypy happy
This commit is contained in:
parent
258d4cc639
commit
91d4dc3ef1
1 changed files with 30 additions and 6 deletions
|
@ -200,7 +200,11 @@ class TestMultiFileSystem(BaseTest):
|
||||||
for line in caplog.messages:
|
for line in caplog.messages:
|
||||||
if line.find("\"hook-json ") != -1:
|
if line.find("\"hook-json ") != -1:
|
||||||
found = 1
|
found = 1
|
||||||
s = re.search('.*\"hook-json ({.*})".*', line).group(1).replace("'", "\"")
|
r = re.search('.*\"hook-json ({.*})".*', line)
|
||||||
|
if r:
|
||||||
|
s = r.group(1).replace("'", "\"")
|
||||||
|
else:
|
||||||
|
break
|
||||||
d = json.loads(s)
|
d = json.loads(s)
|
||||||
if d["user"] == "Anonymous":
|
if d["user"] == "Anonymous":
|
||||||
found = found | 2
|
found = found | 2
|
||||||
|
@ -237,7 +241,11 @@ class TestMultiFileSystem(BaseTest):
|
||||||
for line in caplog.messages:
|
for line in caplog.messages:
|
||||||
if line.find("\"hook-json ") != -1:
|
if line.find("\"hook-json ") != -1:
|
||||||
found = 1
|
found = 1
|
||||||
s = re.search('.*\"hook-json ({.*})".*', line).group(1).replace("'", "\"")
|
r = re.search('.*\"hook-json ({.*})".*', line)
|
||||||
|
if r:
|
||||||
|
s = r.group(1).replace("'", "\"")
|
||||||
|
else:
|
||||||
|
break
|
||||||
d = json.loads(s)
|
d = json.loads(s)
|
||||||
if d["user"] == "Anonymous":
|
if d["user"] == "Anonymous":
|
||||||
found = found | 2
|
found = found | 2
|
||||||
|
@ -270,7 +278,11 @@ class TestMultiFileSystem(BaseTest):
|
||||||
for line in caplog.messages:
|
for line in caplog.messages:
|
||||||
if line.find("\"hook-json ") != -1:
|
if line.find("\"hook-json ") != -1:
|
||||||
found = 1
|
found = 1
|
||||||
s = re.search('.*\"hook-json ({.*})".*', line).group(1).replace("'", "\"")
|
r = re.search('.*\"hook-json ({.*})".*', line)
|
||||||
|
if r:
|
||||||
|
s = r.group(1).replace("'", "\"")
|
||||||
|
else:
|
||||||
|
break
|
||||||
d = json.loads(s)
|
d = json.loads(s)
|
||||||
if d["user"] == "Anonymous":
|
if d["user"] == "Anonymous":
|
||||||
found = found | 2
|
found = found | 2
|
||||||
|
@ -303,7 +315,11 @@ class TestMultiFileSystem(BaseTest):
|
||||||
for line in caplog.messages:
|
for line in caplog.messages:
|
||||||
if line.find("\"hook-json ") != -1:
|
if line.find("\"hook-json ") != -1:
|
||||||
found = 1
|
found = 1
|
||||||
s = re.search('.*\"hook-json ({.*})".*', line).group(1).replace("'", "\"")
|
r = re.search('.*\"hook-json ({.*})".*', line)
|
||||||
|
if r:
|
||||||
|
s = r.group(1).replace("'", "\"")
|
||||||
|
else:
|
||||||
|
break
|
||||||
d = json.loads(s)
|
d = json.loads(s)
|
||||||
if d["user"] == "Anonymous":
|
if d["user"] == "Anonymous":
|
||||||
found = found | 2
|
found = found | 2
|
||||||
|
@ -338,7 +354,11 @@ class TestMultiFileSystem(BaseTest):
|
||||||
for line in caplog.messages:
|
for line in caplog.messages:
|
||||||
if line.find("\"hook-json ") != -1:
|
if line.find("\"hook-json ") != -1:
|
||||||
found = 1
|
found = 1
|
||||||
s = re.search('.*\"hook-json ({.*})".*', line).group(1).replace("'", "\"")
|
r = re.search('.*\"hook-json ({.*})".*', line)
|
||||||
|
if r:
|
||||||
|
s = r.group(1).replace("'", "\"")
|
||||||
|
else:
|
||||||
|
break
|
||||||
d = json.loads(s)
|
d = json.loads(s)
|
||||||
if d["user"] == "Anonymous":
|
if d["user"] == "Anonymous":
|
||||||
found = found | 2
|
found = found | 2
|
||||||
|
@ -377,7 +397,11 @@ class TestMultiFileSystem(BaseTest):
|
||||||
for line in caplog.messages:
|
for line in caplog.messages:
|
||||||
if line.find("\"hook-json ") != -1:
|
if line.find("\"hook-json ") != -1:
|
||||||
found = 1
|
found = 1
|
||||||
s = re.search('.*\"hook-json ({.*})".*', line).group(1).replace("'", "\"")
|
r = re.search('.*\"hook-json ({.*})".*', line)
|
||||||
|
if r:
|
||||||
|
s = r.group(1).replace("'", "\"")
|
||||||
|
else:
|
||||||
|
break
|
||||||
d = json.loads(s)
|
d = json.loads(s)
|
||||||
if d["user"] == "Anonymous":
|
if d["user"] == "Anonymous":
|
||||||
found = found | 2
|
found = found | 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue