@@ -47,13 +47,6 @@ def error_checks(url):
4747 )
4848 yield s .check_bogus_field_returns_error , url , 'preprocess_subroutine' , []
4949 yield s .check_bogus_field_returns_error , url , 'preprocess_subroutine' , {}
50- yield s .check_bogus_field_returns_error , url , 'name' , True
51- yield s .check_bogus_field_returns_error , url , 'name' , None
52- yield s .check_bogus_field_returns_error , url , 'name' , s .random_string (129 )
53- yield s .check_bogus_field_returns_error , url , 'name' , 1234
54- yield s .check_bogus_field_returns_error , url , 'name' , []
55- yield s .check_bogus_field_returns_error , url , 'name' , {}
56- yield s .check_bogus_field_returns_error , url , 'name' , 'name'
5750 yield s .check_bogus_field_returns_error , url , 'label' , 123
5851 yield s .check_bogus_field_returns_error , url , 'label' , None
5952 yield s .check_bogus_field_returns_error , url , 'label' , True
@@ -131,6 +124,7 @@ def test_get(outcall):
131124 description = outcall ['description' ],
132125 internal_caller_id = outcall ['internal_caller_id' ],
133126 name = outcall ['name' ],
127+ label = outcall ['label' ],
134128 ring_time = outcall ['ring_time' ],
135129 trunks = empty (),
136130 ),
@@ -158,7 +152,7 @@ def test_create_minimal_parameters():
158152
159153def test_create_all_parameters ():
160154 parameters = {
161- 'name ' : 'MyOutcall ' ,
155+ 'label ' : 'My Outcall ' ,
162156 'internal_caller_id' : True ,
163157 'preprocess_subroutine' : 'subroutine' ,
164158 'ring_time' : 10 ,
@@ -183,7 +177,7 @@ def test_edit_minimal_parameters(outcall):
183177@fixtures .outcall ()
184178def test_edit_all_parameters (outcall ):
185179 parameters = {
186- 'name ' : 'MyOutcall' ,
180+ 'label ' : 'MyOutcall' ,
187181 'internal_caller_id' : True ,
188182 'preprocess_subroutine' : 'subroutine' ,
189183 'ring_time' : 10 ,
0 commit comments