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

[formrecognizer] update receipt tests #11534

Merged
merged 1 commit into from
May 20, 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 @@ -344,8 +344,7 @@ def test_receipt_multipage(self, resource_group, location, form_recognizer_accou
self.assertEqual(receipt.merchant_name.value, 'Bilbo Baggins')
self.assertEqual(receipt.merchant_phone_number.value, '+15555555555')
self.assertEqual(receipt.subtotal.value, 300.0)
# TODO: revert after service side fix
self.assertIsNotNone(receipt.total.value)
self.assertEqual(receipt.total.value, 100.0)
self.assertEqual(receipt.page_range.first_page, 1)
self.assertEqual(receipt.page_range.last_page, 1)
self.assertFormPagesHasValues(receipt.pages)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,7 @@ async def test_receipt_multipage(self, resource_group, location, form_recognizer
self.assertEqual(receipt.merchant_name.value, 'Bilbo Baggins')
self.assertEqual(receipt.merchant_phone_number.value, '+15555555555')
self.assertEqual(receipt.subtotal.value, 300.0)
# TODO: revert after service side fix
self.assertIsNotNone(receipt.total.value)
self.assertEqual(receipt.total.value, 100.0)
self.assertEqual(receipt.page_range.first_page, 1)
self.assertEqual(receipt.page_range.last_page, 1)
self.assertFormPagesHasValues(receipt.pages)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,7 @@ def test_receipt_multipage_url(self, resource_group, location, form_recognizer_a
self.assertEqual(receipt.merchant_name.value, 'Bilbo Baggins')
self.assertEqual(receipt.merchant_phone_number.value, '+15555555555')
self.assertEqual(receipt.subtotal.value, 300.0)
# TODO: revert after service side fix
self.assertIsNotNone(receipt.total.value)
self.assertEqual(receipt.total.value, 100.0)
self.assertEqual(receipt.page_range.first_page, 1)
self.assertEqual(receipt.page_range.last_page, 1)
self.assertFormPagesHasValues(receipt.pages)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,7 @@ async def test_receipt_multipage_url(self, resource_group, location, form_recogn
self.assertEqual(receipt.merchant_name.value, 'Bilbo Baggins')
self.assertEqual(receipt.merchant_phone_number.value, '+15555555555')
self.assertEqual(receipt.subtotal.value, 300.0)
# TODO: revert after service side fix
self.assertIsNotNone(receipt.total.value)
self.assertEqual(receipt.total.value, 100.0)
self.assertEqual(receipt.page_range.first_page, 1)
self.assertEqual(receipt.page_range.last_page, 1)
self.assertFormPagesHasValues(receipt.pages)
Expand Down