mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-07 11:53:52 -05:00
Add comments to make test data clearer
It’s not clear where 103 is coming from unless you know that the code is doing the slightly unintuitive thing of displaying the max of all return values.
This commit is contained in:
@@ -689,9 +689,13 @@ def test_clear_cache_shows_form(client_request, platform_admin_user, mocker):
|
||||
|
||||
@pytest.mark.parametrize('model_type, expected_calls, expected_confirmation', (
|
||||
('template', [
|
||||
# Returns 101
|
||||
call('service-????????-????-????-????-????????????-templates'),
|
||||
# Returns 102
|
||||
call('service-????????-????-????-????-????????????-template-????????-????-????-????-????????????-version-*'),
|
||||
# Returns 103
|
||||
call('service-????????-????-????-????-????????????-template-????????-????-????-????-????????????-versions'),
|
||||
# 103 shown here because it’s the `max` of the 3 counts
|
||||
], 'Removed 103 template objects from redis'),
|
||||
('service', [
|
||||
call('has_jobs-????????-????-????-????-????????????'),
|
||||
|
||||
Reference in New Issue
Block a user