check command unit test looks for a invalid SMTP server instead of a invalid LDAP server

This commit is contained in:
Éloi Rivard 2023-05-20 20:11:19 +02:00
parent c75108344b
commit fd493fb8d0

View file

@ -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