Add explanation in assertion
This commit is contained in:
parent
73ecc49d49
commit
d4ad33ec7a
1 changed files with 2 additions and 2 deletions
|
@ -72,8 +72,8 @@ mm = mattermost.MMApi(f"https://{SERVER}/api")
|
|||
if TOKEN:
|
||||
mm.login(bearer=TOKEN)
|
||||
else:
|
||||
assert USER
|
||||
assert PASSWORD
|
||||
assert USER, "USER and PASSWORD or TOKEN envvars must be set"
|
||||
assert PASSWORD, "USER and PASSWORD or TOKEN envvars must be set"
|
||||
mm.login(USER, PASSWORD)
|
||||
|
||||
# pylint: disable=protected-access # bad library design: can't fix this without extra API request
|
||||
|
|
Loading…
Reference in a new issue