mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-20 14:29:25 -04:00
Move ID generation into link test method
Unlike the other IDs which are stored in the DB, this isn't relevant for the Celery task as it invokes a link test. Moving it into the proxy client will also enable us to generate a second ID in the next commits, where we start doing a link test for the failover lambda.
This commit is contained in:
@@ -566,10 +566,8 @@ def test_trigger_link_tests_invokes_cbc_proxy_client(
|
||||
f'app.clients.cbc_proxy.CBCProxy{provider_capitalised}.send_link_test',
|
||||
)
|
||||
|
||||
mocker.patch('app.celery.broadcast_message_tasks.uuid.uuid4', return_value=123)
|
||||
|
||||
trigger_link_test(provider)
|
||||
assert mock_send_link_test.called_once_with('123')
|
||||
assert mock_send_link_test.called_once()
|
||||
|
||||
|
||||
@pytest.mark.parametrize('retry_count, expected_delay', [
|
||||
|
||||
Reference in New Issue
Block a user