Replace windows path separators in GDFILE keyword

This commit is contained in:
Joakim Hove
2021-01-27 13:23:15 +01:00
parent 30ec56fffe
commit d15a3a918c
8 changed files with 22 additions and 16 deletions

View File

@@ -28,7 +28,7 @@ class TestEclFile(unittest.TestCase):
"PERMX","PERMY", "PERMZ","NTG","TRANX","TRANY","TRANZ","TABDIMS","TAB",
"ACTNUM","EQLNUM","FIPNUM","PVTNUM","SATNUM","TRANNNC"]
self.assertRaises(ValueError, EclFile, "/file/that/does_not_exists")
self.assertRaises(RuntimeError, EclFile, "/file/that/does_not_exists")
file2uf = EclFile(test_path("data/SPE9.INIT"), preload=False)
self.assertEqual(len(file2uf), 24)

View File

@@ -15,7 +15,7 @@ class TestEGrid(unittest.TestCase):
def test_ijk_active_and_global_indices(self):
with self.assertRaises(ValueError):
with self.assertRaises(RuntimeError):
EGrid("/file/that/does_not_exists")
grid1 = EGrid(test_path("data/9_EDITNNC.EGRID"))

View File

@@ -22,7 +22,7 @@ class TestEclFile(unittest.TestCase):
('PROD', (2017, 7, 31), 942.0) ]
with self.assertRaises(ValueError):
with self.assertRaises(RuntimeError):
ERft("/file/that/does_not_exists")
rft1 = ERft(test_path("data/SPE1CASE1.RFT"))

View File

@@ -15,7 +15,7 @@ class TestEclFile(unittest.TestCase):
def test_base_runs(self):
with self.assertRaises(ValueError):
with self.assertRaises(RuntimeError):
ESmry("/file/that/does_not_exists")
smry1 = ESmry(test_path("data/SPE1CASE1.SMSPEC"))