Re-organized commands tests

This commit is contained in:
Éloi Rivard 2023-04-09 14:35:58 +02:00
parent 08f8bfbfdb
commit a38ef06356
3 changed files with 2 additions and 1 deletions

View file

View file

@ -79,7 +79,8 @@ def test_clean_command(testclient, slapd_connection, client, user):
assert expired_token.is_expired()
runner = testclient.app.test_cli_runner()
runner.invoke(cli, ["clean"])
res = runner.invoke(cli, ["clean"])
assert res.exit_code == 0, res.stdout
assert AuthorizationCode.query() == [valid_code]
assert Token.query() == [valid_token]