From 70d08efe4317b417141af5cf16d71f20a1864488 Mon Sep 17 00:00:00 2001 From: Matti Remes Date: Sun, 26 Feb 2017 21:42:08 +0200 Subject: [PATCH] make the syntax of the test flake-pretty --- pandas_gbq/tests/test_gbq.py | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) 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(