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)