You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by tv...@apache.org on 2022/05/13 06:54:21 UTC

[beam] branch revert-17551-better-test created (now b8d78b7998a)

This is an automated email from the ASF dual-hosted git repository.

tvalentyn pushed a change to branch revert-17551-better-test
in repository https://gitbox.apache.org/repos/asf/beam.git


      at b8d78b7998a Revert "Better test assertion. (#17551)"

This branch includes the following new commits:

     new b8d78b7998a Revert "Better test assertion. (#17551)"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[beam] 01/01: Revert "Better test assertion. (#17551)"

Posted by tv...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tvalentyn pushed a commit to branch revert-17551-better-test
in repository https://gitbox.apache.org/repos/asf/beam.git

commit b8d78b7998a4751762714ffeb66af2640e396652
Author: tvalentyn <tv...@users.noreply.github.com>
AuthorDate: Fri May 13 08:54:11 2022 +0200

    Revert "Better test assertion. (#17551)"
    
    This reverts commit dc20185f6af2e862bd62f9df7b835593a466c5f1.
---
 sdks/python/apache_beam/io/gcp/bigquery_json_it_test.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sdks/python/apache_beam/io/gcp/bigquery_json_it_test.py b/sdks/python/apache_beam/io/gcp/bigquery_json_it_test.py
index 25ce2b359f3..13bf63a46a1 100644
--- a/sdks/python/apache_beam/io/gcp/bigquery_json_it_test.py
+++ b/sdks/python/apache_beam/io/gcp/bigquery_json_it_test.py
@@ -100,13 +100,13 @@ class BigQueryJsonIT(unittest.TestCase):
         # Test country (JSON String)
         country_actual = json.loads(row["country"])
         country_expected = json.loads(expected["country"])
-        self.assertEqual(country_expected, country_actual)
+        self.assertTrue(country_expected == country_actual)
 
         # Test stats (JSON String in BigQuery struct)
         for stat, value in row["stats"].items():
           stats_actual = json.loads(value)
           stats_expected = json.loads(expected["stats"][stat])
-          self.assertEqual(stats_expected, stats_actual)
+          self.assertTrue(stats_expected == stats_actual)
 
         # Test cities (JSON String in BigQuery array of structs)
         for city_row in row["cities"]:
@@ -115,7 +115,7 @@ class BigQueryJsonIT(unittest.TestCase):
 
           city_actual = json.loads(city)
           city_expected = json.loads(expected["cities"][city_name])
-          self.assertEqual(city_expected, city_actual)
+          self.assertTrue(city_expected == city_actual)
 
         # Test landmarks (JSON String in BigQuery array)
         landmarks_actual = row["landmarks"]
@@ -123,7 +123,7 @@ class BigQueryJsonIT(unittest.TestCase):
         for i in range(len(landmarks_actual)):
           l_actual = json.loads(landmarks_actual[i])
           l_expected = json.loads(landmarks_expected[i])
-          self.assertEqual(l_expected, l_actual)
+          self.assertTrue(l_expected == l_actual)
 
     parser = argparse.ArgumentParser()
     parser.add_argument('--read_method')