Skip to content

Commit 1606cd6

Browse files
1 parent 6a13cab commit 1606cd6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

‎tests/unit/test_client.py‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8608,11 +8608,9 @@ def test_load_table_from_dataframe_w_nullable_int64_datatype_automatic_schema(se
86088608
assert sent_config.source_format == job.SourceFormat.PARQUET
86098609
assert (
86108610
# Accept either the GoogleSQL or legacy SQL type name from pandas-gbq.
8611-
tuple(sent_config.schema) == (
8612-
SchemaField("x", "INT64", "NULLABLE", None),
8613-
) or tuple(sent_config.schema) == (
8614-
SchemaField("x", "INTEGER", "NULLABLE", None),
8615-
)
8611+
tuple(sent_config.schema) == (SchemaField("x", "INT64", "NULLABLE", None),)
8612+
or tuple(sent_config.schema)
8613+
== (SchemaField("x", "INTEGER", "NULLABLE", None),)
86168614
)
86178615

86188616
def test_load_table_from_dataframe_struct_fields(self):
@@ -8809,7 +8807,10 @@ def test_load_table_from_dataframe_array_fields_w_auto_schema(self):
88098807

88108808
sent_config = load_table_from_file.mock_calls[0][2]["job_config"]
88118809
assert sent_config.source_format == job.SourceFormat.PARQUET
8812-
assert sent_config.schema == expected_schema_googlesql or sent_config.schema == expected_schema_legacy_sql
8810+
assert (
8811+
sent_config.schema == expected_schema_googlesql
8812+
or sent_config.schema == expected_schema_legacy_sql
8813+
)
88138814

88148815
def test_load_table_from_dataframe_w_partial_schema(self):
88158816
pandas = pytest.importorskip("pandas")

0 commit comments

Comments
 (0)