mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Python pytest : Issue project.close() after each test
This commit is contained in:
parent
8cb3ac5b1f
commit
4381f679e5
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user