mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 14:31:57 -05:00
Refactored to use service_id to set flag
This commit is contained in:
@@ -74,7 +74,7 @@ def test_set_inbound_number_active_flag(notify_db, notify_db_session, sample_ser
|
||||
inbound_number = create_inbound_number(number='1')
|
||||
dao_set_inbound_number_to_service(sample_service.id, inbound_number)
|
||||
|
||||
dao_set_inbound_number_active_flag(inbound_number.id, active=active)
|
||||
dao_set_inbound_number_active_flag(sample_service.id, active=active)
|
||||
|
||||
inbound_number = dao_get_inbound_number_for_service(sample_service.id)
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ def test_rest_set_inbound_number_active_flag_off(
|
||||
admin_request.post(
|
||||
'inbound_number.post_set_inbound_number_off',
|
||||
_expected_status=204,
|
||||
inbound_number_id=inbound_number.id
|
||||
service_id=service.id
|
||||
)
|
||||
|
||||
inbound_number_from_db = dao_get_inbound_number_for_service(service.id)
|
||||
|
||||
Reference in New Issue
Block a user