Use utility function for path to testdata

This commit is contained in:
Joakim Hove
2019-10-25 09:57:38 +02:00
parent 2fb3ce4957
commit e51b14f6fd
10 changed files with 50 additions and 60 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import datetime as dt
from opm.io.parser import Parser
from opm.io.ecl_state import EclipseState
from opm.io.schedule import Schedule
from utils import test_path
class TestSchedule(unittest.TestCase):
@@ -11,7 +12,7 @@ class TestSchedule(unittest.TestCase):
@classmethod
def setUpClass(cls):
deck = Parser().parse('tests/spe3/SPE3CASE1.DATA')
deck = Parser().parse(test_path('spe3/SPE3CASE1.DATA'))
state = EclipseState(deck)
cls.sch = Schedule( deck, state )