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

[text analytics] Updated tests failing in live mode #16795

Merged
merged 3 commits into from
Feb 18, 2021

Conversation

abhahn
Copy link
Member

@abhahn abhahn commented Feb 18, 2021

I used this log as a guide for which fixes to make.

I was able to reproduce all of the failures except for test_analyze.test_all_successful_passing_string_pii_entities_task which is still passing for me when running in live mode locally, so more investigation may be needed to determine why it's failing.

@@ -294,7 +303,7 @@ async def test_out_of_order_ids(self, client):
self.assertEqual(resp.id, expected_order[idx])

@GlobalTextAnalyticsAccountPreparer()
@TextAnalyticsClientPreparer()
@TextAnalyticsClientPreparer(client_kwargs={"text_analytics_account_key": os.environ.get("AZURE_TEXT_ANALYTICS_KEY"), "text_analytics_account": os.environ.get("AZURE_TEXT_ANALYTICS_ENDPOINT")})
Copy link
Contributor

Choose a reason for hiding this comment

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

hey @abhahn can you get rid of these environ variables in the future? i'm going to just push to this branch, but I think you adding this means your tests aren't fully set up correctly, can hop on a call today to figure this out more.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hey, looks like you did this already. I have had some issues getting the tests to run correctly in WSL, so it might help for us to review what I'm doing to see if there's something wrong.

@iscai-msft iscai-msft enabled auto-merge (squash) February 18, 2021 17:59
@iscai-msft iscai-msft merged commit 1a31b56 into Azure:master Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants