From dcc4e8d186033b166f1bc0654ba1f46601f60ee8 Mon Sep 17 00:00:00 2001 From: Santosh Philip Date: Sun, 5 Nov 2023 09:35:49 -0800 Subject: [PATCH] modified: tests/conftest.py --- tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index cbe8770c..3d6ba661 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -17,7 +17,7 @@ IDD_FILES = os.path.join(RESOURCES_DIR, "iddfiles") IDF_FILES = os.path.join(RESOURCES_DIR, "idffiles") try: - VERSION = os.environ['ENERGYPLUS_INSTALL_VERSION'] # used in CI files + VERSION = os.environ["ENERGYPLUS_INSTALL_VERSION"] # used in CI files except KeyError: VERSION = "8-9-0" # current default for integration tests on local system TEST_IDF = "V{}/smallfile.idf".format(VERSION[:3].replace("-", "_")) @@ -26,11 +26,11 @@ TEST_OLD_IDD = "Energy+V7_2_0.idd" - def teardown_module(module): """new IDD has been set in the module. Here you tear it down""" safeIDDreset() + @pytest.fixture() def test_idf(): idd_file = os.path.join(IDD_FILES, TEST_IDD)