Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 26, 2023
1 parent 72719ce commit 71f796f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_write_iterator_to_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ def test_write_iterator_to_file(tmp_path: Path):
]
iterator = iter(items)
csv_columns = ElicitLog.csv_columns(skip_baseline=True)

def to_csv_line(x):
return x.to_csv_line(skip_baseline=True)

# Write the CSV file
with open(tmp_path / "test.csv", "w") as f:
write_iterator_to_file(
Expand Down Expand Up @@ -89,8 +91,10 @@ def iterator() -> Iterator[ElicitLog]:
raise ValueError()

csv_columns = ElicitLog.csv_columns(skip_baseline=True)

def to_csv_line(x):
return x.to_csv_line(skip_baseline=True)

# Write the CSV file
try:
with open(tmp_path / "test.csv", "w") as f:
Expand Down Expand Up @@ -148,6 +152,7 @@ def log_function(layer: int) -> ElicitLog:
def test_write_iterator_crash_multiprocessing(tmp_path: Path):
processes = 3
csv_columns = ElicitLog.csv_columns(skip_baseline=True)

def to_csv_line(x):
return x.to_csv_line(skip_baseline=True)

Expand Down

0 comments on commit 71f796f

Please sign in to comment.