Skip to content

Commit 26bf967

Browse files
committed
fix pep8 build fail
1 parent ab15869 commit 26bf967

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

pandas/tests/io/json/test_normalize.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def data_records_path_with_nested_data():
8080
}]
8181

8282

83-
def expected_data_for_test_records_path_with_nested_data():
83+
def expected_data_test_path_with_nested_data():
8484
return {0: [{"TextField": "Some text",
8585
'UserField': {'Id': 'ID001', 'Name': 'Name001'},
8686
"CreatedBy": {"Name": "User001"},
@@ -98,6 +98,7 @@ def expected_data_for_test_records_path_with_nested_data():
9898
"CreatedBy": {"Name": "User001"},
9999
'Image': {'a': 'b'}}]}
100100

101+
101102
class TestJSONNormalize(object):
102103

103104
def test_simple_records(self):
@@ -310,13 +311,15 @@ def test_missing_field(self, author_missing_data):
310311
tm.assert_frame_equal(result, expected)
311312

312313
@pytest.mark.parametrize("max_level, columns", [
313-
(0, ['TextField', 'UserField', 'CreatedBy', "Image"] ),
314-
(1, ['TextField', 'UserField.Id', 'UserField.Name', 'CreatedBy', "Image"]),
314+
(0, ['TextField', 'UserField', 'CreatedBy', "Image"]),
315+
(1, ['TextField', 'UserField.Id',
316+
'UserField.Name', 'CreatedBy', "Image"]),
315317
])
316-
def test_records_path_with_nested_data(self, data_records_path_with_nested_data,
318+
def test_records_path_with_nested_data(self,
319+
data_records_path_with_nested_data,
317320
max_level, columns):
318321
test_input = data_records_path_with_nested_data
319-
expected_data = expected_data_for_test_records_path_with_nested_data()[max_level]
322+
expected_data = expected_data_test_path_with_nested_data()[max_level]
320323
result = json_normalize(test_input,
321324
record_path=["Lookup"],
322325
meta=[["CreatedBy"], ["Image"]],
@@ -331,7 +334,6 @@ def test_flat_stays_flat(self):
331334
recs = [dict(flat1=1, flat2=2),
332335
dict(flat1=3, flat2=4),
333336
]
334-
335337
result = nested_to_record(recs)
336338
expected = recs
337339
assert result == expected

0 commit comments

Comments
 (0)