Skip to content

Commit f7060ab

Browse files
authored
SWI-10392 Update test_phone_number_lookup_api.py (#291)
* SWI-10392 Update test_phone_number_lookup_api.py * remove link assertions from GETs
1 parent af1b4fd commit f7060ab

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

test/smoke/test_phone_number_lookup_api.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,14 @@ def test_create_get_async_bulk_lookup(self) -> None:
7474
assert_that(response.data.errors, instance_of(list))
7575

7676
request_id = response.data.data.request_id
77-
sleep(30)
77+
sleep(60)
7878

7979
response = self.api.get_async_bulk_lookup_with_http_info(BW_ACCOUNT_ID, request_id)
8080
assert_that(response, is_not(none()))
8181
assert_that(response.status_code, equal_to(200))
8282
assert_that(response.data, is_not(none()))
8383
assert_that(response.data, instance_of(GetAsyncBulkLookupResponse))
8484
assert_that(response.data.links, is_not(none()))
85-
assert_that(response.data.links[0], instance_of(LinkSchema))
86-
assert_that(response.data.links[0].rel, instance_of(str))
87-
assert_that(response.data.links[0].href, instance_of(str))
88-
assert_that(response.data.links[0].method, instance_of(str))
8985
assert_that(response.data.data, is_not(none()))
9086
assert_that(response.data.data.request_id, equal_to(request_id))
9187
assert_that(response.data.data.status, instance_of(InProgressLookupStatusEnum))
@@ -110,10 +106,6 @@ def test_create_sync_lookup(self) -> None:
110106
assert_that(response.data, is_not(none()))
111107
assert_that(response.data, instance_of(CreateSyncLookupResponse))
112108
assert_that(response.data.links, is_not(none()))
113-
assert_that(response.data.links[0], instance_of(LinkSchema))
114-
assert_that(response.data.links[0].rel, instance_of(str))
115-
assert_that(response.data.links[0].href, instance_of(str))
116-
assert_that(response.data.links[0].method, instance_of(str))
117109
assert_that(response.data.data, is_not(none()))
118110
assert_that(response.data.data.request_id, instance_of(UUID))
119111
assert_that(response.data.data.status, instance_of(CompletedLookupStatusEnum))

0 commit comments

Comments
 (0)