Skip to content

Commit a7ac34c

Browse files
authored
enable receipt and bc (#17004)
1 parent a252c3a commit a7ac34c

File tree

53 files changed

+7437
-7427
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+7437
-7427
lines changed

sdk/formrecognizer/Azure.AI.FormRecognizer/tests/FormRecognizerClient/FormRecognizerClientLiveTests.cs

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,8 @@ public void StartRecognizeContentWithNoSupporttedLanguage()
527527
/// Recognizer cognitive service and perform analysis of receipts.
528528
/// </summary>
529529
[Test]
530-
[TestCase(true, Ignore = "Not supported")]
531-
[TestCase(false, Ignore = "Not supported")]
530+
[TestCase(true)]
531+
[TestCase(false)]
532532
public async Task StartRecognizeReceiptsPopulatesExtractedReceiptJpg(bool useStream)
533533
{
534534
var client = CreateFormRecognizerClient();
@@ -638,8 +638,8 @@ public async Task StartRecognizeReceiptsPopulatesExtractedReceiptJpg(bool useStr
638638
}
639639

640640
[Test]
641-
[TestCase(true, Ignore = "Not supported")]
642-
[TestCase(false, Ignore = "Not supported")]
641+
[TestCase(true)]
642+
[TestCase(false)]
643643
public async Task StartRecognizeReceiptsPopulatesExtractedReceiptPng(bool useStream)
644644
{
645645
var client = CreateFormRecognizerClient();
@@ -752,8 +752,8 @@ public async Task StartRecognizeReceiptsPopulatesExtractedReceiptPng(bool useStr
752752
}
753753

754754
[Test]
755-
[TestCase(true, Ignore = "Not supported")]
756-
[TestCase(false, Ignore = "Not supported")]
755+
[TestCase(true)]
756+
[TestCase(false)]
757757
public async Task StartRecognizeReceiptsCanParseMultipageForm(bool useStream)
758758
{
759759
var client = CreateFormRecognizerClient();
@@ -808,7 +808,6 @@ public async Task StartRecognizeReceiptsCanParseMultipageForm(bool useStream)
808808
}
809809

810810
[Test]
811-
[Ignore("Not supported")]
812811
public async Task StartRecognizeReceiptsCanParseBlankPage()
813812
{
814813
var client = CreateFormRecognizerClient();
@@ -840,7 +839,6 @@ public async Task StartRecognizeReceiptsCanParseBlankPage()
840839
}
841840

842841
[Test]
843-
[Ignore("Not supported")]
844842
public async Task StartRecognizeReceiptsCanParseMultipageFormWithBlankPage()
845843
{
846844
var client = CreateFormRecognizerClient();
@@ -893,7 +891,6 @@ public async Task StartRecognizeReceiptsCanParseMultipageFormWithBlankPage()
893891
}
894892

895893
[Test]
896-
[Ignore("Not supported")]
897894
public void StartRecognizeReceiptsThrowsForDamagedFile()
898895
{
899896
var client = CreateFormRecognizerClient();
@@ -912,7 +909,6 @@ public void StartRecognizeReceiptsThrowsForDamagedFile()
912909
/// Recognizer cognitive service and handle returned errors.
913910
/// </summary>
914911
[Test]
915-
[Ignore("Not supported")]
916912
public void StartRecognizeReceiptsFromUriThrowsForNonExistingContent()
917913
{
918914
var client = CreateFormRecognizerClient();
@@ -923,8 +919,8 @@ public void StartRecognizeReceiptsFromUriThrowsForNonExistingContent()
923919
}
924920

925921
[Test]
926-
[TestCase("en-US", Ignore = "Not supported")]
927-
[TestCase("", Ignore = "Not supported")]
922+
[TestCase("en-US")]
923+
[TestCase("")]
928924
public async Task StartRecognizeReceiptsWithSupportedLocale(string locale)
929925
{
930926
var client = CreateFormRecognizerClient();
@@ -961,7 +957,6 @@ public async Task StartRecognizeReceiptsWithSupportedLocale(string locale)
961957
}
962958

963959
[Test]
964-
[Ignore("Not supported")]
965960
public void StartRecognizeReceiptsWithWrongLocale()
966961
{
967962
var client = CreateFormRecognizerClient();
@@ -976,8 +971,8 @@ public void StartRecognizeReceiptsWithWrongLocale()
976971
#region StartRecognizeBusinessCards
977972

978973
[Test]
979-
[TestCase(true, Ignore = "Not supported")]
980-
[TestCase(false, Ignore = "Not supported") ]
974+
[TestCase(true)]
975+
[TestCase(false) ]
981976
public async Task StartRecognizeBusinessCardsPopulatesExtractedJpg(bool useStream)
982977
{
983978
var client = CreateFormRecognizerClient();
@@ -1083,8 +1078,8 @@ public async Task StartRecognizeBusinessCardsPopulatesExtractedJpg(bool useStrea
10831078
}
10841079

10851080
[Test]
1086-
[TestCase(true, Ignore = "Not supported")]
1087-
[TestCase(false, Ignore = "Not supported")]
1081+
[TestCase(true)]
1082+
[TestCase(false)]
10881083
public async Task StartRecognizeBusinessCardsPopulatesExtractedPng(bool useStream)
10891084
{
10901085
var client = CreateFormRecognizerClient();
@@ -1190,7 +1185,6 @@ public async Task StartRecognizeBusinessCardsPopulatesExtractedPng(bool useStrea
11901185
}
11911186

11921187
[Test]
1193-
[Ignore("Not supported")]
11941188
public async Task StartRecognizeBusinessCardsIncludeFieldElements()
11951189
{
11961190
var client = CreateFormRecognizerClient();
@@ -1215,7 +1209,6 @@ public async Task StartRecognizeBusinessCardsIncludeFieldElements()
12151209
}
12161210

12171211
[Test]
1218-
[Ignore("Not supported")]
12191212
public async Task StartRecognizeBusinessCardsCanParseBlankPage()
12201213
{
12211214
var client = CreateFormRecognizerClient();
@@ -1248,7 +1241,6 @@ public async Task StartRecognizeBusinessCardsCanParseBlankPage()
12481241
}
12491242

12501243
[Test]
1251-
[Ignore("Not supported")]
12521244
public void StartRecognizeBusinessCardsThrowsForDamagedFile()
12531245
{
12541246
var client = CreateFormRecognizerClient();
@@ -1267,7 +1259,6 @@ public void StartRecognizeBusinessCardsThrowsForDamagedFile()
12671259
/// Recognizer cognitive service and handle returned errors.
12681260
/// </summary>
12691261
[Test]
1270-
[Ignore("Not supported")]
12711262
public void StartRecognizeBusinessCardsFromUriThrowsForNonExistingContent()
12721263
{
12731264
var client = CreateFormRecognizerClient();
@@ -1278,8 +1269,8 @@ public void StartRecognizeBusinessCardsFromUriThrowsForNonExistingContent()
12781269
}
12791270

12801271
[Test]
1281-
[TestCase(true, Ignore = "Not supported")]
1282-
[TestCase(false, Ignore = "Not supported")]
1272+
[TestCase(true)]
1273+
[TestCase(false)]
12831274
public async Task StartRecognizeBusinessCardsCanParseMultipageForm(bool useStream)
12841275
{
12851276
var client = CreateFormRecognizerClient();

sdk/formrecognizer/Azure.AI.FormRecognizer/tests/Models/OperationsLiveTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public async Task RecognizeContentOperationCanPollFromNewObject()
4646
}
4747

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

6766
[Test]
68-
public async Task RecognizeInoicesOperationCanPollFromNewObject()
67+
public async Task RecognizeInvoicesOperationCanPollFromNewObject()
6968
{
7069
// Skip instrumenting here because the internal service client passed to the operation object would be made null otherwise,
7170
// making the test fail.

0 commit comments

Comments
 (0)