Skip to content

Commit

Permalink
make the syntax of the test flake-pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
mremes committed Feb 26, 2017
1 parent 45826f1 commit 70d08ef
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions pandas_gbq/tests/test_gbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 70d08ef

Please sign in to comment.