mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-14 01:02:09 -05:00
more tests
This commit is contained in:
@@ -844,7 +844,7 @@ def test_clear_redis_list(monkeypatch, notify_api):
|
||||
|
||||
mock_redis_store.llen = llen_side_effect
|
||||
runner = notify_api.test_cli_runner()
|
||||
result = runner.invoke(clear_redis_list, ["-n", "foo"])
|
||||
result = runner.invoke(clear_redis_list, ["-n", "test_list"])
|
||||
assert result.exit_code == 0
|
||||
assert ltrim_calls == [("test_list", 1, 0)]
|
||||
assert logger_info_calls == ["Cleared redis list test_list. Before: 5 after 0"]
|
||||
|
||||
Reference in New Issue
Block a user