mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4463 Working creation of grid case groups
This commit is contained in:
@@ -88,4 +88,4 @@ def test_replaceCase(rips_instance, initializeTest):
|
||||
assert(len(cases) is 1)
|
||||
case = project.case(id=0)
|
||||
assert(case.name == "Real0--BRUGGE_0000.EGRID")
|
||||
assert(case.id == 0)
|
||||
assert(case.id == 0)
|
||||
|
||||
@@ -33,4 +33,12 @@ def test_exportPropertyInView(rips_instance, initializeTest):
|
||||
rips_instance.commands.exportPropertyInViews(0, "3D View", 0)
|
||||
expectedFileName = case.name + "-" + str("3D_View") + "-" + "T0" + "-SOIL"
|
||||
fullPath = tmpdirname + "/" + expectedFileName
|
||||
assert(os.path.exists(fullPath))
|
||||
assert(os.path.exists(fullPath))
|
||||
|
||||
@pytest.mark.skipif(sys.platform.startswith('linux'), reason="Brugge is currently exceptionally slow on Linux")
|
||||
def test_loadGridCaseGroup(rips_instance, initializeTest):
|
||||
casePaths = []
|
||||
casePaths.append(dataroot.PATH + "/Case_with_10_timesteps/Real0/BRUGGE_0000.EGRID")
|
||||
casePaths.append(dataroot.PATH + "/Case_with_10_timesteps/Real10/BRUGGE_0010.EGRID")
|
||||
groupId, groupName = rips_instance.commands.createGridCaseGroup(casePaths=casePaths)
|
||||
print(groupId, groupName)
|
||||
Reference in New Issue
Block a user