Refactored to use service_id to set flag

This commit is contained in:
Ken Tsang
2017-08-14 18:20:25 +01:00
parent 4eba6335d6
commit e14fa2d87e
4 changed files with 8 additions and 8 deletions

View File

@@ -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)

View File

@@ -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)