Skip to content

Commit

Permalink
[Communication]: Enabled Phone Number Search Test (#18247)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsundaralingam authored Apr 23, 2021
1 parent 99edeeb commit 8092bc0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
SKIP_PURCHASE_PHONE_NUMBER_TESTS = True
PURCHASE_PHONE_NUMBER_TEST_SKIP_REASON = "Phone numbers shouldn't be purchased in live tests"

SKIP_SEARCH_AVAILABLE_PHONE_NUMBER_TESTS = True
SEARCH_AVAILABLE_PHONE_NUMBER_TEST_SKIP_REASON = "Temporarily skipping test"


class PhoneNumbersClientTest(CommunicationTestCase):
def setUp(self):
Expand Down Expand Up @@ -59,7 +56,6 @@ def test_get_purchased_phone_number(self):
phone_number = self.phone_number_client.get_purchased_phone_number(self.phone_number)
assert phone_number.phone_number == self.phone_number

@pytest.mark.skipif(SKIP_SEARCH_AVAILABLE_PHONE_NUMBER_TESTS, reason=SEARCH_AVAILABLE_PHONE_NUMBER_TEST_SKIP_REASON)
def test_search_available_phone_numbers_from_managed_identity(self):
endpoint, access_key = parse_connection_str(self.connection_str)
credential = create_token_credential()
Expand All @@ -77,7 +73,6 @@ def test_search_available_phone_numbers_from_managed_identity(self):
)
assert poller.result()

@pytest.mark.skipif(SKIP_SEARCH_AVAILABLE_PHONE_NUMBER_TESTS, reason=SEARCH_AVAILABLE_PHONE_NUMBER_TEST_SKIP_REASON)
def test_search_available_phone_numbers(self):
capabilities = PhoneNumberCapabilities(
calling = PhoneNumberCapabilityType.INBOUND,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
SKIP_PURCHASE_PHONE_NUMBER_TESTS = True
PURCHASE_PHONE_NUMBER_TEST_SKIP_REASON = "Phone numbers shouldn't be purchased in live tests"

SKIP_SEARCH_AVAILABLE_PHONE_NUMBER_TESTS = True
SEARCH_AVAILABLE_PHONE_NUMBER_TEST_SKIP_REASON = "Temporarily skipping test"


class PhoneNumbersClientTestAsync(AsyncCommunicationTestCase):
def setUp(self):
Expand Down Expand Up @@ -74,7 +71,6 @@ async def test_get_purchased_phone_number(self):
phone_number = await self.phone_number_client.get_purchased_phone_number(self.phone_number)
assert phone_number.phone_number == self.phone_number

@pytest.mark.skipif(SKIP_SEARCH_AVAILABLE_PHONE_NUMBER_TESTS, reason=SEARCH_AVAILABLE_PHONE_NUMBER_TEST_SKIP_REASON)
@AsyncCommunicationTestCase.await_prepared_test
async def test_search_available_phone_numbers_from_managed_identity(self):
endpoint, access_key = parse_connection_str(self.connection_str)
Expand All @@ -94,7 +90,6 @@ async def test_search_available_phone_numbers_from_managed_identity(self):
)
assert poller.result()

@pytest.mark.skipif(SKIP_SEARCH_AVAILABLE_PHONE_NUMBER_TESTS, reason=SEARCH_AVAILABLE_PHONE_NUMBER_TEST_SKIP_REASON)
@AsyncCommunicationTestCase.await_prepared_test
async def test_search_available_phone_numbers(self):
capabilities = PhoneNumberCapabilities(
Expand Down

0 comments on commit 8092bc0

Please sign in to comment.