Skip to content

Commit

Permalink
fix test if example folder contains optimade.jsonl
Browse files Browse the repository at this point in the history
  • Loading branch information
eimrek committed Apr 23, 2024
1 parent 83bc873 commit 597a483
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def test_convert_example_archives(archive_path, tmp_path):
tmp_path = tmp_path / archive_path.name
shutil.copytree(archive_path, tmp_path)

# remove 'optimade.jsonl' if the example was already run
(tmp_path / "optimade.jsonl").unlink(missing_ok=True)

jsonl_path = convert_archive(tmp_path)
assert jsonl_path.exists()

Expand Down

0 comments on commit 597a483

Please sign in to comment.