mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
23 lines
389 B
Python
23 lines
389 B
Python
import pytest
|
|
import sys
|
|
import os
|
|
|
|
sys.path.insert(1, os.path.join(sys.path[0], '..'))
|
|
import rips
|
|
|
|
instance = rips.Instance.launch()
|
|
|
|
if (not instance):
|
|
exit(1)
|
|
|
|
@pytest.fixture
|
|
def rips_instance():
|
|
return instance
|
|
|
|
@pytest.fixture
|
|
def initializeTest():
|
|
instance.project.close()
|
|
|
|
def pytest_unconfigure(config):
|
|
print("Telling ResInsight to Exit")
|
|
instance.app.exit() |