mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 17:38:50 -04:00
Use pre-defined mock from conftest
Rather than manually writing it.
This commit is contained in:
@@ -632,11 +632,10 @@ def test_format_recipient(original_address, expected_address):
|
||||
def test_uploads_page_shows_scheduled_jobs(
|
||||
mocker,
|
||||
client_request,
|
||||
mock_get_uploads,
|
||||
mock_get_no_uploads,
|
||||
mock_get_jobs,
|
||||
user,
|
||||
):
|
||||
mocker.patch('app.models.job.PaginatedUploads.client_method', return_value={'data': []})
|
||||
client_request.login(user)
|
||||
page = client_request.get('main.uploads', service_id=SERVICE_ONE_ID)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user