@@ -18,7 +18,8 @@ def test_update_request(self):
1818 self .holodeck .mock (Response (500 , '' ))
1919
2020 with self .assertRaises (TwilioException ):
21- self .client .insights .v1 .annotation ("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ).update ()
21+ self .client .insights .v1 .calls ("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ) \
22+ .annotation ().update ()
2223
2324 self .holodeck .assert_has_request (Request (
2425 'post' ,
@@ -35,7 +36,8 @@ def test_update_response(self):
3536 "answered_by": "human",
3637 "connectivity_issue": "invalid_number",
3738 "quality_issues": [
38- "low_volume"
39+ "low_volume",
40+ "choppy_robotic"
3941 ],
4042 "spam": true,
4143 "call_score": 2,
@@ -46,15 +48,17 @@ def test_update_response(self):
4648 '''
4749 ))
4850
49- actual = self .client .insights .v1 .annotation ("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ).update ()
51+ actual = self .client .insights .v1 .calls ("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ) \
52+ .annotation ().update ()
5053
5154 self .assertIsNotNone (actual )
5255
5356 def test_fetch_request (self ):
5457 self .holodeck .mock (Response (500 , '' ))
5558
5659 with self .assertRaises (TwilioException ):
57- self .client .insights .v1 .annotation ("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ).fetch ()
60+ self .client .insights .v1 .calls ("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ) \
61+ .annotation ().fetch ()
5862
5963 self .holodeck .assert_has_request (Request (
6064 'get' ,
@@ -82,6 +86,7 @@ def test_fetch_response(self):
8286 '''
8387 ))
8488
85- actual = self .client .insights .v1 .annotation ("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ).fetch ()
89+ actual = self .client .insights .v1 .calls ("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ) \
90+ .annotation ().fetch ()
8691
8792 self .assertIsNotNone (actual )
0 commit comments