Skip to content

Commit

Permalink
Write to temporary file while testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjackson committed Oct 22, 2024
1 parent b29947c commit 15c07fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests_and_analysis/test/euphonic_test/test_writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ def modes_data(

def test_phonon_website_writer(
modes_data: tuple[
QpointPhononModes, WritePhononWebsiteKwargs, PhononWebsiteData]
QpointPhononModes, WritePhononWebsiteKwargs, PhononWebsiteData],
tmp_path
) -> None:
"""Test QpointPhononModes -> phonon website JSON matches reference"""
modes, kwargs, ref_data = modes_data
kwargs["output_file"] = tmp_path / kwargs["output_file"]

write_phonon_website_json(modes, **kwargs)

Expand Down

0 comments on commit 15c07fb

Please sign in to comment.