Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[formrecognizer] skip aad tests #15461

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class TestManagementAsync(AsyncFormRecognizerTest):

@GlobalFormRecognizerAccountPreparer()
@pytest.mark.live_test_only
@pytest.mark.skip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do u usually have to put a reason? or just skip is fine

async def test_active_directory_auth_async(self):
token = self.generate_oauth_token()
endpoint = self.get_oauth_endpoint()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def test_polling_interval(self, resource_group, location, form_recognizer_accoun
self.assertEqual(poller2._polling_method._timeout, 7) # goes back to client default

@pytest.mark.live_test_only
@pytest.mark.skip
def test_active_directory_auth(self):
token = self.generate_oauth_token()
endpoint = self.get_oauth_endpoint()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ async def test_polling_interval(self, resource_group, location, form_recognizer_

@pytest.mark.live_test_only
@GlobalFormRecognizerAccountPreparer()
@pytest.mark.skip
async def test_active_directory_auth_async(self):
token = self.generate_oauth_token()
endpoint = self.get_oauth_endpoint()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def _test_file(file_name, account, key):
class TestSamples(FormRecognizerTest):
@pytest.mark.live_test_only
@GlobalFormRecognizerAccountPreparer()
@pytest.mark.skip
def test_sample_authentication(self, resource_group, location, form_recognizer_account, form_recognizer_account_key):
os.environ['AZURE_FORM_RECOGNIZER_AAD_ENDPOINT'] = self.get_settings_value("FORM_RECOGNIZER_AAD_ENDPOINT")
os.environ['AZURE_CLIENT_ID'] = self.get_settings_value("CLIENT_ID")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class TestSamplesAsync(FormRecognizerTest):
# Async sample tests
@pytest.mark.live_test_only
@GlobalFormRecognizerAccountPreparer()
@pytest.mark.skip
def test_sample_authentication_async(self, resource_group, location, form_recognizer_account, form_recognizer_account_key):
os.environ['AZURE_FORM_RECOGNIZER_AAD_ENDPOINT'] = self.get_settings_value("FORM_RECOGNIZER_AAD_ENDPOINT")
os.environ['AZURE_CLIENT_ID'] = self.get_settings_value("CLIENT_ID")
Expand Down