Skip to content

Commit

Permalink
[FormRecognizer] Stopped ignoring tests after service fixes (#29302)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinelski authored Jun 15, 2022
1 parent efab57c commit 43013e2
Show file tree
Hide file tree
Showing 20 changed files with 16,632 additions and 1,678 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,9 @@ public async Task StartAnalyzeDocumentPopulatesDocumentPageJpg(bool useStream)
Assert.GreaterOrEqual(word.Confidence, 0);
}

// TODO: re-enable once service-side issue is fixed (https://github.com/Azure/azure-sdk-for-net-pr/issues/1727).
//DocumentStyle style = result.Styles.First();
DocumentStyle style = result.Styles.First();

//Assert.True(style.IsHandwritten);
Assert.True(style.IsHandwritten);

Assert.AreEqual(41, result.Paragraphs.Count);

Expand Down Expand Up @@ -1389,7 +1388,6 @@ public async Task StartAnalyzeDocumentCanParseMultipageReceipt(bool useStream)
}

[RecordedTest]
[Ignore("https://github.com/Azure/azure-sdk-for-net-pr/issues/1728")]
public async Task StartAnalyzeDocumentCanParseMultipageReceiptWithBlankPage()
{
var client = CreateDocumentAnalysisClient();
Expand Down Expand Up @@ -1451,7 +1449,6 @@ public void DocumentAnalysisClientCannotAuthenticateWithFakeApiKey()
}

[RecordedTest]
[Ignore("https://github.com/Azure/azure-sdk-for-net-pr/issues/1726")]
public async Task StartAnalyzeDocumentCanAuthenticateWithTokenCredential()
{
var client = CreateDocumentAnalysisClient(useTokenCredential: true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public DocumentModelAdministrationClientLiveTests(bool isAsync, DocumentAnalysis
}

[RecordedTest]
[Ignore("https://github.com/Azure/azure-sdk-for-net-pr/issues/1726")]
public async Task StartBuildModelCanAuthenticateWithTokenCredential()
{
var client = CreateDocumentModelAdministrationClient(useTokenCredential: true);
Expand Down Expand Up @@ -202,7 +201,7 @@ public async Task GetPrebuiltModel()
}

[RecordedTest]
[TestCase(true, Ignore = "https://github.com/Azure/azure-sdk-for-net-pr/issues/1726")]
[TestCase(true)]
[TestCase(false)]
[Ignore("https://github.com/Azure/azure-sdk-for-net/issues/28705")]
public async Task AdminOps(bool useTokenCredential)
Expand Down Expand Up @@ -253,7 +252,7 @@ public void DeleteModelFailsWhenModelDoesNotExist()
}

[RecordedTest]
[TestCase(true, Ignore = "https://github.com/Azure/azure-sdk-for-net-pr/issues/1726")]
[TestCase(true)]
[TestCase(false)]
public async Task GetAndListOperations(bool useTokenCredential)
{
Expand Down Expand Up @@ -325,7 +324,7 @@ public void GetOperationWrongId()

#region copy
[RecordedTest]
[TestCase(true, Ignore = "https://github.com/Azure/azure-sdk-for-net-pr/issues/1726")]
[TestCase(true)]
[TestCase(false)]
public async Task CopyModel(bool useTokenCredential)
{
Expand Down Expand Up @@ -415,7 +414,7 @@ public async Task CopyModelErrorAsync()

[RecordedTest]
[TestCase(false)]
[TestCase(true, Ignore = "https://github.com/Azure/azure-sdk-for-net-pr/issues/1726")]
[TestCase(true)]
public async Task StartCreateComposedModel(bool useTokenCredential)
{
var client = CreateDocumentModelAdministrationClient(useTokenCredential);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public RecognizeContentLiveTests(bool isAsync, FormRecognizerClientOptions.Servi
}

[RecordedTest]
[Ignore("https://github.com/Azure/azure-sdk-for-net-pr/issues/1726")]
public async Task StartRecognizeContentCanAuthenticateWithTokenCredential()
{
var client = CreateFormRecognizerClient(useTokenCredential: true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public RecognizeCustomFormsLiveTests(bool isAsync, FormRecognizerClientOptions.S
[RecordedTest]
[TestCase(true)]
[TestCase(false)]
[Ignore("https://github.com/Azure/azure-sdk-for-net-pr/issues/1726")]
public async Task StartRecognizeCustomFormsCanAuthenticateWithTokenCredential(bool useTrainingLabels)
{
var client = CreateFormRecognizerClient(useTokenCredential: true);
Expand Down
Loading

0 comments on commit 43013e2

Please sign in to comment.