forked from Github-Mirrors/canaille
check command unit test looks for a invalid SMTP server instead of a invalid LDAP server
This commit is contained in:
parent
c75108344b
commit
fd493fb8d0
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ def test_check_command(testclient):
|
||||||
|
|
||||||
|
|
||||||
def test_check_command_fail(testclient):
|
def test_check_command_fail(testclient):
|
||||||
testclient.app.config["BACKENDS"]["LDAP"]["URI"] = "ldap://invalid-ldap.com"
|
testclient.app.config["SMTP"]["HOST"] = "ldap://invalid-ldap.com"
|
||||||
runner = testclient.app.test_cli_runner()
|
runner = testclient.app.test_cli_runner()
|
||||||
res = runner.invoke(cli, ["check"])
|
res = runner.invoke(cli, ["check"])
|
||||||
assert res.exit_code == 1, res.stdout
|
assert res.exit_code == 1, res.stdout
|
||||||
|
|
Loading…
Reference in a new issue