Skip to content

Commit

Permalink
test(eplus): not saving the test output
Browse files Browse the repository at this point in the history
  • Loading branch information
taoning committed Nov 6, 2024
1 parent dd4bb63 commit 950cf81
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/test_eplus.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from pathlib import Path
import tempfile

from frads.eplus import EnergyPlusSetup, load_energyplus_model
from frads.window import create_glazing_system
Expand Down Expand Up @@ -87,6 +88,7 @@ def test_output_meter(medium_office):
def test_energyplussetup(medium_office):
"""Test running EnergyPlusSetup."""

ep = EnergyPlusSetup(medium_office)
ep.run(design_day=True)
assert Path("eplusout.csv").exists()
with tempfile.TemporaryDirectory() as tmpdir:
ep = EnergyPlusSetup(medium_office)
ep.run(output_directory=tmpdir, design_day=True)
assert (Path(tmpdir)/"eplusout.csv").exists()

0 comments on commit 950cf81

Please sign in to comment.