liferoad commented on code in PR #36528:
URL: https://github.com/apache/beam/pull/36528#discussion_r2441206501


##########
sdks/python/apache_beam/examples/snippets/transforms/elementwise/enrichment_test.py:
##########
@@ -126,7 +126,7 @@ def test_enrichment_with_bigtable(self, mock_stdout):
     enrichment_with_bigtable()
     output = mock_stdout.getvalue().splitlines()
     expected = validate_enrichment_with_bigtable()
-    self.assertEqual(output, expected)
+    self.assertEqual(sorted(output), sorted(expected))

Review Comment:
   ```
   =================================== FAILURES 
===================================
   _________________ EnrichmentTest.test_enrichment_with_bigtable 
_________________
   [gw2] linux -- Python 3.10.17 
/runner/_work/beam/beam/sdks/python/test-suites/tox/py310/build/srcs/sdks/python/target/.tox-py310-cloud/py310-cloud/bin/python
   
   self = 
<apache_beam.examples.snippets.transforms.elementwise.enrichment_test.EnrichmentTest
 testMethod=test_enrichment_with_bigtable>
   mock_stdout = <_io.StringIO object at 0x7bd7a443ef80>
   
       def test_enrichment_with_bigtable(self, mock_stdout):
         enrichment_with_bigtable()
         output = mock_stdout.getvalue().splitlines()
         expected = validate_enrichment_with_bigtable()
   >     self.assertEqual(output, expected)
   E     AssertionError: Lists differ: ["Row[141 chars]e_id=5, customer_id=5, 
product_id=4, quantity=[215 chars]'})"] != ["Row[141 chars]e_id=3, 
customer_id=3, product_id=2, quantity=[215 chars]'})"]
   E     
   E     First differing element 1:
   E     "Row(sale_id=5, customer_id=5, product_id=4, quantity=[77 chars]0'})"
   E     "Row(sale_id=3, customer_id=3, product_id=2, quantity=[76 chars]4'})"
   E     
   E     Diff is 650 characters long. Set self.maxDiff to None to see it.
   
   apache_beam/examples/snippets/transforms/elementwise/enrichment_test.py:129: 
AssertionError
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to