diff --git a/pandas_gbq/tests/test_gbq.py b/pandas_gbq/tests/test_gbq.py index 1233029d..6a3cad19 100644 --- a/pandas_gbq/tests/test_gbq.py +++ b/pandas_gbq/tests/test_gbq.py @@ -1163,14 +1163,26 @@ def test_upload_data_flexible_column_order(self): def test_verify_schema_ignores_field_mode(self): test_id = "14" - test_schema_1 = {'fields': [{'name': 'A', 'type': 'FLOAT', 'mode': 'NULLABLE'}, - {'name': 'B', 'type': 'FLOAT', 'mode': 'NULLABLE'}, - {'name': 'C', 'type': 'STRING', 'mode': 'NULLABLE'}, - {'name': 'D', 'type': 'TIMESTAMP', 'mode': 'REQUIRED'}]} - test_schema_2 = {'fields': [{'name': 'A', 'type': 'FLOAT'}, - {'name': 'B', 'type': 'FLOAT'}, - {'name': 'C', 'type': 'STRING'}, - {'name': 'D', 'type': 'TIMESTAMP'}]} + test_schema_1 = {'fields': [{'name': 'A', + 'type': 'FLOAT', + 'mode': 'NULLABLE'}, + {'name': 'B', + 'type': 'FLOAT', + 'mode': 'NULLABLE'}, + {'name': 'C', + 'type': 'STRING', + 'mode': 'NULLABLE'}, + {'name': 'D', + 'type': 'TIMESTAMP', + 'mode': 'REQUIRED'}]} + test_schema_2 = {'fields': [{'name': 'A', + 'type': 'FLOAT'}, + {'name': 'B', + 'type': 'FLOAT'}, + {'name': 'C', + 'type': 'STRING'}, + {'name': 'D', + 'type': 'TIMESTAMP'}]} self.table.create(TABLE_ID + test_id, test_schema_1) self.assertTrue(self.sut.verify_schema(