mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
testplugin.py: print HTTP response text on error
This commit is contained in:
@@ -152,7 +152,7 @@ class SessionLiveConfigFromURL:
|
|||||||
assert index == len(self.configlist), index
|
assert index == len(self.configlist), index
|
||||||
res = requests.post(self.url)
|
res = requests.post(self.url)
|
||||||
if res.status_code != 200:
|
if res.status_code != 200:
|
||||||
pytest.skip("creating newtmpuser failed {!r}".format(res))
|
pytest.skip("creating newtmpuser failed with code {}: '{}'".format(res.status_code, res.text))
|
||||||
d = res.json()
|
d = res.json()
|
||||||
config = dict(addr=d["email"], mail_pw=d["password"])
|
config = dict(addr=d["email"], mail_pw=d["password"])
|
||||||
self.configlist.append(config)
|
self.configlist.append(config)
|
||||||
|
|||||||
Reference in New Issue
Block a user