mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-10 23:32:27 -05:00
Merge pull request #3110 from alphagov/test-channel
Set the default broadcast channel to test
This commit is contained in:
@@ -210,6 +210,7 @@ class CBCProxyEE(CBCProxyClientBase):
|
||||
'sent': sent,
|
||||
'expires': expires,
|
||||
'language': self.infer_language_from(description),
|
||||
'channel': 'test',
|
||||
}
|
||||
self._invoke_lambda_with_failover(payload=payload)
|
||||
|
||||
@@ -270,6 +271,7 @@ class CBCProxyThree(CBCProxyClientBase):
|
||||
'sent': sent,
|
||||
'expires': expires,
|
||||
'language': self.infer_language_from(description),
|
||||
'channel': 'test',
|
||||
}
|
||||
self._invoke_lambda_with_failover(payload=payload)
|
||||
|
||||
@@ -329,6 +331,7 @@ class CBCProxyO2(CBCProxyClientBase):
|
||||
'sent': sent,
|
||||
'expires': expires,
|
||||
'language': self.infer_language_from(description),
|
||||
'channel': 'test',
|
||||
}
|
||||
self._invoke_lambda_with_failover(payload=payload)
|
||||
|
||||
@@ -391,6 +394,7 @@ class CBCProxyVodafone(CBCProxyClientBase):
|
||||
'sent': sent,
|
||||
'expires': expires,
|
||||
'language': self.infer_language_from(description),
|
||||
'channel': 'test',
|
||||
}
|
||||
self._invoke_lambda_with_failover(payload=payload)
|
||||
|
||||
|
||||
@@ -133,6 +133,7 @@ def test_cbc_proxy_one_2_many_create_and_send_invokes_function(
|
||||
assert payload['sent'] == sent
|
||||
assert payload['expires'] == expires
|
||||
assert payload['language'] == expected_language
|
||||
assert payload['channel'] == 'test'
|
||||
|
||||
|
||||
@pytest.mark.parametrize('cbc', ['ee', 'three', 'o2'])
|
||||
@@ -249,6 +250,7 @@ def test_cbc_proxy_vodafone_create_and_send_invokes_function(
|
||||
assert payload['sent'] == sent
|
||||
assert payload['expires'] == expires
|
||||
assert payload['language'] == expected_language
|
||||
assert payload['channel'] == 'test'
|
||||
|
||||
|
||||
def test_cbc_proxy_vodafone_cancel_invokes_function(mocker, cbc_proxy_vodafone):
|
||||
|
||||
Reference in New Issue
Block a user