mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 00:33:58 -04:00
Refactor use ServiceOnOffForm
We no longer need a custom form object here – ServiceOnOffForm does the same job of turning strings to booleans and back again.
This commit is contained in:
@@ -3788,8 +3788,8 @@ def test_broadcast_service_cant_post_to_set_other_channels_endpoint(
|
||||
|
||||
|
||||
@pytest.mark.parametrize('permissions, expected_checked', [
|
||||
(['international_sms'], 'on'),
|
||||
([''], 'off'),
|
||||
(['international_sms'], 'True'),
|
||||
([''], 'False'),
|
||||
])
|
||||
def test_show_international_sms_as_radio_button(
|
||||
client_request,
|
||||
@@ -3812,8 +3812,8 @@ def test_show_international_sms_as_radio_button(
|
||||
|
||||
|
||||
@pytest.mark.parametrize('post_value, international_sms_permission_expected_in_api_call', [
|
||||
('on', True),
|
||||
('off', False),
|
||||
('True', True),
|
||||
('False', False),
|
||||
])
|
||||
def test_switch_service_enable_international_sms(
|
||||
client_request,
|
||||
|
||||
Reference in New Issue
Block a user