mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 17:10:19 -05:00
#5556 Refactor python error handling.
This commit is contained in:
1 parent
3c5221236a
commit
135695fcb5
69 files changed
+307
-260
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import sys
|
||||
import os
|
||||
import pytest
|
||||
|
||||
sys.path.insert(1, os.path.join(sys.path[0], "../../"))
|
||||
from rips import RipsError
|
||||
|
||||
|
||||
def test_exception_on_object_method(rips_instance, initialize_test):
|
||||
name = "the name"
|
||||
nx = 12
|
||||
ny = 13
|
||||
nz = -1
|
||||
|
||||
with pytest.raises(RipsError, match=r"Invalid grid size"):
|
||||
rips_instance.project.create_corner_point_grid(name, nx, ny, nz, [], [], [])
|
||||
Reference in new issue
Block a user