Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
Signed-off-by: Sarah Yurick <[email protected]>
  • Loading branch information
sarahyurick committed Oct 22, 2024
1 parent 4d24465 commit b42d3a6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,18 @@ class TestWriteWithFilename:
@pytest.mark.parametrize("keep_filename_column", [True, False])
@pytest.mark.parametrize("file_ext", ["jsonl", "parquet"])
def test_multifile_single_partition(
self, tmp_path, keep_filename_column, file_ext,
self,
tmp_path,
keep_filename_column,
file_ext,
):
df = pd.DataFrame({"a": [1, 2, 3], "filename": ["file0", "file1", "file1"]})

single_partition_write_with_filename(
df=df,
output_file_dir=tmp_path,
keep_filename_column=keep_filename_column,
output_type=file_ext
output_type=file_ext,
)
assert os.path.exists(tmp_path / f"file0.{file_ext}")
assert os.path.exists(tmp_path / f"file1.{file_ext}")
Expand All @@ -181,7 +184,10 @@ def test_multifile_single_partition(
@pytest.mark.parametrize("keep_filename_column", [True, False])
@pytest.mark.parametrize("file_ext", ["jsonl", "parquet"])
def test_singlefile_single_partition(
self, tmp_path, keep_filename_column, file_ext,
self,
tmp_path,
keep_filename_column,
file_ext,
):
df = pd.DataFrame({"a": [1, 2, 3], "filename": ["file2", "file2", "file2"]})

Expand Down

0 comments on commit b42d3a6

Please sign in to comment.