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

[FR] Enable receipts and business cards again #17004

Merged
merged 1 commit into from
Nov 17, 2020
Merged
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 @@ -527,8 +527,8 @@ public void StartRecognizeContentWithNoSupporttedLanguage()
/// Recognizer cognitive service and perform analysis of receipts.
/// </summary>
[Test]
[TestCase(true, Ignore = "Not supported")]
[TestCase(false, Ignore = "Not supported")]
[TestCase(true)]
[TestCase(false)]
public async Task StartRecognizeReceiptsPopulatesExtractedReceiptJpg(bool useStream)
{
var client = CreateFormRecognizerClient();
Expand Down Expand Up @@ -638,8 +638,8 @@ public async Task StartRecognizeReceiptsPopulatesExtractedReceiptJpg(bool useStr
}

[Test]
[TestCase(true, Ignore = "Not supported")]
[TestCase(false, Ignore = "Not supported")]
[TestCase(true)]
[TestCase(false)]
public async Task StartRecognizeReceiptsPopulatesExtractedReceiptPng(bool useStream)
{
var client = CreateFormRecognizerClient();
Expand Down Expand Up @@ -752,8 +752,8 @@ public async Task StartRecognizeReceiptsPopulatesExtractedReceiptPng(bool useStr
}

[Test]
[TestCase(true, Ignore = "Not supported")]
[TestCase(false, Ignore = "Not supported")]
[TestCase(true)]
[TestCase(false)]
public async Task StartRecognizeReceiptsCanParseMultipageForm(bool useStream)
{
var client = CreateFormRecognizerClient();
Expand Down Expand Up @@ -808,7 +808,6 @@ public async Task StartRecognizeReceiptsCanParseMultipageForm(bool useStream)
}

[Test]
[Ignore("Not supported")]
public async Task StartRecognizeReceiptsCanParseBlankPage()
{
var client = CreateFormRecognizerClient();
Expand Down Expand Up @@ -840,7 +839,6 @@ public async Task StartRecognizeReceiptsCanParseBlankPage()
}

[Test]
[Ignore("Not supported")]
public async Task StartRecognizeReceiptsCanParseMultipageFormWithBlankPage()
{
var client = CreateFormRecognizerClient();
Expand Down Expand Up @@ -893,7 +891,6 @@ public async Task StartRecognizeReceiptsCanParseMultipageFormWithBlankPage()
}

[Test]
[Ignore("Not supported")]
public void StartRecognizeReceiptsThrowsForDamagedFile()
{
var client = CreateFormRecognizerClient();
Expand All @@ -912,7 +909,6 @@ public void StartRecognizeReceiptsThrowsForDamagedFile()
/// Recognizer cognitive service and handle returned errors.
/// </summary>
[Test]
[Ignore("Not supported")]
public void StartRecognizeReceiptsFromUriThrowsForNonExistingContent()
{
var client = CreateFormRecognizerClient();
Expand All @@ -923,8 +919,8 @@ public void StartRecognizeReceiptsFromUriThrowsForNonExistingContent()
}

[Test]
[TestCase("en-US", Ignore = "Not supported")]
[TestCase("", Ignore = "Not supported")]
[TestCase("en-US")]
[TestCase("")]
public async Task StartRecognizeReceiptsWithSupportedLocale(string locale)
{
var client = CreateFormRecognizerClient();
Expand Down Expand Up @@ -961,7 +957,6 @@ public async Task StartRecognizeReceiptsWithSupportedLocale(string locale)
}

[Test]
[Ignore("Not supported")]
public void StartRecognizeReceiptsWithWrongLocale()
{
var client = CreateFormRecognizerClient();
Expand All @@ -976,8 +971,8 @@ public void StartRecognizeReceiptsWithWrongLocale()
#region StartRecognizeBusinessCards

[Test]
[TestCase(true, Ignore = "Not supported")]
[TestCase(false, Ignore = "Not supported") ]
[TestCase(true)]
[TestCase(false) ]
public async Task StartRecognizeBusinessCardsPopulatesExtractedJpg(bool useStream)
{
var client = CreateFormRecognizerClient();
Expand Down Expand Up @@ -1083,8 +1078,8 @@ public async Task StartRecognizeBusinessCardsPopulatesExtractedJpg(bool useStrea
}

[Test]
[TestCase(true, Ignore = "Not supported")]
[TestCase(false, Ignore = "Not supported")]
[TestCase(true)]
[TestCase(false)]
public async Task StartRecognizeBusinessCardsPopulatesExtractedPng(bool useStream)
{
var client = CreateFormRecognizerClient();
Expand Down Expand Up @@ -1190,7 +1185,6 @@ public async Task StartRecognizeBusinessCardsPopulatesExtractedPng(bool useStrea
}

[Test]
[Ignore("Not supported")]
public async Task StartRecognizeBusinessCardsIncludeFieldElements()
{
var client = CreateFormRecognizerClient();
Expand All @@ -1215,7 +1209,6 @@ public async Task StartRecognizeBusinessCardsIncludeFieldElements()
}

[Test]
[Ignore("Not supported")]
public async Task StartRecognizeBusinessCardsCanParseBlankPage()
{
var client = CreateFormRecognizerClient();
Expand Down Expand Up @@ -1248,7 +1241,6 @@ public async Task StartRecognizeBusinessCardsCanParseBlankPage()
}

[Test]
[Ignore("Not supported")]
public void StartRecognizeBusinessCardsThrowsForDamagedFile()
{
var client = CreateFormRecognizerClient();
Expand All @@ -1267,7 +1259,6 @@ public void StartRecognizeBusinessCardsThrowsForDamagedFile()
/// Recognizer cognitive service and handle returned errors.
/// </summary>
[Test]
[Ignore("Not supported")]
public void StartRecognizeBusinessCardsFromUriThrowsForNonExistingContent()
{
var client = CreateFormRecognizerClient();
Expand All @@ -1278,8 +1269,8 @@ public void StartRecognizeBusinessCardsFromUriThrowsForNonExistingContent()
}

[Test]
[TestCase(true, Ignore = "Not supported")]
[TestCase(false, Ignore = "Not supported")]
[TestCase(true)]
[TestCase(false)]
public async Task StartRecognizeBusinessCardsCanParseMultipageForm(bool useStream)
{
var client = CreateFormRecognizerClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public async Task RecognizeContentOperationCanPollFromNewObject()
}

[Test]
[Ignore("Not supported")]
public async Task RecognizeReceiptsOperationCanPollFromNewObject()
{
// Skip instrumenting here because the internal service client passed to the operation object would be made null otherwise,
Expand All @@ -65,7 +64,7 @@ public async Task RecognizeReceiptsOperationCanPollFromNewObject()
}

[Test]
public async Task RecognizeInoicesOperationCanPollFromNewObject()
public async Task RecognizeInvoicesOperationCanPollFromNewObject()
{
// Skip instrumenting here because the internal service client passed to the operation object would be made null otherwise,
// making the test fail.
Expand Down
Loading