forked from Github-Mirrors/canaille
Re-organized commands tests
This commit is contained in:
parent
08f8bfbfdb
commit
a38ef06356
3 changed files with 2 additions and 1 deletions
0
tests/core/commands/__init__.py
Normal file
0
tests/core/commands/__init__.py
Normal 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]
|
Loading…
Reference in a new issue