Python pytest : Issue project.close() after each test

This commit is contained in:
Magne Sjaastad 2019-08-08 08:15:04 +02:00
parent 8cb3ac5b1f
commit 4381f679e5

View File

@ -14,7 +14,9 @@ def rips_instance():
@pytest.fixture
def initializeTest():
_rips_instance.project.close()
_rips_instance.project.close() # make sure ResInsight is clean before execution of test
yield initializeTest
_rips_instance.project.close() # make sure ResInsight is clean after test
def pytest_addoption(parser):
parser.addoption("--console", action="store_true", default=False, help="Run as console application")