8000 no reservation status · twilio/twilio-python@55c4188 · GitHub
[go: up one dir, main page]

Skip to content

Commit 55c4188

Browse files
committed
no reservation status
1 parent 73f40e5 commit 55c4188

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

tests/task_router/test_task_router_worker_capability.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def test_allow_activity_updates(self):
132132
self.assertTrue(policy["allowed"])
133133
self.assertIsNotNone(policy['post_filter'])
134134
self.assertEqual({}, policy['query_filter'])
135-
self.assertTrue(policy['post_filter']['ActivitySid'])
135+
self.assertEqual({}, policy['post_filter'])
136136

137137
def test_allow_reservation_updates(self):
138138
# allow reservation updates
@@ -156,7 +156,7 @@ def test_allow_reservation_updates(self):
156156
self.assertTrue(policy["allowed"])
157157
self.assertIsNotNone(policy["post_filter"])
158158
self.assertEqual({}, policy["query_filter"])
159-
self.assertTrue(policy["post_filter"]["ReservationStatus"])
159+
self.assertEqual({}, policy['post_filter'])
160160

161161
if __name__ == "__main__":
162162
unittest.main()

twilio/task_router/capability/task_router_capability.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,16 +153,14 @@ def allow_activity_updates(self):
153153
self.policies.append(self.make_policy(
154154
self.resource_url,
155155
'POST',
156-
True,
157-
post_filter = {'ActivitySid': REQUIRED}
156+
True
158157
)
159158
)
160159
def allow_reservation_updates(self):
161160
self.policies.append(self.make_policy(
162161
self.reservations_url,
163162
'POST',
164-
True,
165-
post_filter = {'ReservationStatus': REQUIRED},
163+
True
166164
)
167165
)
168166

0 commit comments

Comments
 (0)
0