Skip to content

Commit 7b98e28

Browse files
committed
chore: clean up missed python formatting in last pull request
Signed-off-by: R. Tyler Croy <[email protected]>
1 parent 9647974 commit 7b98e28

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

python/tests/test_writer.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2518,10 +2518,11 @@ def test_dots_in_column_names_2624(tmp_path: pathlib.Path):
25182518
<https://github.com/delta-io/delta-rs/issues/2624>
25192519
"""
25202520
import pyarrow as pa
2521+
25212522
initial = pa.Table.from_pydict(
25222523
{
2523-
"Product.Id": ['x-0', 'x-1', 'x-2', 'x-3'],
2524-
'Cost' : [10, 11, 12, 13],
2524+
"Product.Id": ["x-0", "x-1", "x-2", "x-3"],
2525+
"Cost": [10, 11, 12, 13],
25252526
}
25262527
)
25272528

@@ -2533,8 +2534,8 @@ def test_dots_in_column_names_2624(tmp_path: pathlib.Path):
25332534

25342535
update = pa.Table.from_pydict(
25352536
{
2536-
"Product.Id": ['x-1'],
2537-
'Cost' : [101],
2537+
"Product.Id": ["x-1"],
2538+
"Cost": [101],
25382539
}
25392540
)
25402541

@@ -2543,16 +2544,16 @@ def test_dots_in_column_names_2624(tmp_path: pathlib.Path):
25432544
data=update,
25442545
partition_by=["Product.Id"],
25452546
mode="overwrite",
2546-
predicate="\"Product.Id\" = 'x-1'"
2547+
predicate="\"Product.Id\" = 'x-1'",
25472548
)
25482549

25492550
dt = DeltaTable(tmp_path)
25502551
expected = pa.Table.from_pydict(
25512552
{
2552-
"Product.Id": ['x-0', 'x-1', 'x-2', 'x-3'],
2553-
'Cost' : [10, 101, 12, 13],
2553+
"Product.Id": ["x-0", "x-1", "x-2", "x-3"],
2554+
"Cost": [10, 101, 12, 13],
25542555
}
25552556
)
25562557
# Sorting just to make sure the equivalency matches up
2557-
actual = dt.to_pyarrow_table().sort_by('Product.Id')
2558+
actual = dt.to_pyarrow_table().sort_by("Product.Id")
25582559
assert expected == actual

0 commit comments

Comments
 (0)