From 8092bc05602790c4ae43c55d6f622385e55efccc Mon Sep 17 00:00:00 2001 From: Lakshman Sundaralingam Date: Fri, 23 Apr 2021 09:41:46 -0700 Subject: [PATCH] [Communication]: Enabled Phone Number Search Test (#18247) --- .../test/test_phone_number_administration_client.py | 5 ----- .../test/test_phone_number_administration_client_async.py | 5 ----- 2 files changed, 10 deletions(-) diff --git a/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client.py b/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client.py index f6ee40f98c0a..ffa89ef1219f 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client.py +++ b/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client.py @@ -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): @@ -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() @@ -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, diff --git a/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client_async.py b/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client_async.py index 358f21410c14..343839eb42aa 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client_async.py +++ b/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client_async.py @@ -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): @@ -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) @@ -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(