Skip to content

Commit

Permalink
[Text Analytics] Remove test that depended on a retired model version (
Browse files Browse the repository at this point in the history
  • Loading branch information
joseharriaga authored May 18, 2023
1 parent 97288e4 commit dcf2e48
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 160 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,6 @@ public async Task ExtractKeyPhrasesWithLanguageTest()
Assert.IsTrue(keyPhrases.Contains("veterinario"));
}

[RecordedTest]
public async Task ExtractKeyPhrasesWithWarningTest()
{
TextAnalyticsClient client = GetClient();
string document = "Anthony runs his own personal training business so thisisaverylongtokenwhichwillbetruncatedtoshowushowwarningsareemittedintheapi";

ExtractKeyPhrasesResultCollection keyPhrasesCollection = await client.ExtractKeyPhrasesBatchAsync(new List<string> { document }, "es", new TextAnalyticsRequestOptions() { ModelVersion = "2020-07-01" });
KeyPhraseCollection keyPhrases = keyPhrasesCollection.FirstOrDefault().KeyPhrases;

ValidateInDocumenResult(keyPhrases, 1);

Assert.AreEqual(TextAnalyticsWarningCode.LongWordsInDocument, keyPhrases.Warnings.FirstOrDefault().WarningCode.ToString());
}

[RecordedTest]
public async Task ExtractKeyPhrasesBatchWithErrorTest()
{
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit dcf2e48

Please sign in to comment.