1
0
Fork 0
canaille-globuzma/tests/commands/test_check.py
2021-11-24 13:15:35 +01:00

12 lines
344 B
Python

from canaille.commands import cli
def test_check_command(testclient):
runner = testclient.app.test_cli_runner()
runner.invoke(cli, ["check"])
def test_check_command_fail(testclient):
testclient.app.config["LDAP"]["URI"] = "ldap://invalid-ldap.com"
runner = testclient.app.test_cli_runner()
runner.invoke(cli, ["check"])