File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,22 @@ def test_virtualfile_in_required_z_matrix_missing():
66
66
pass
67
67
68
68
69
+ # TODO(PyGMT>=0.20.0): Remove this test for the deprecated 'required_z' parameter.
70
+ def test_virtualfile_in_required_z_deprecated ():
71
+ """
72
+ Same as test_virtualfile_in_required_z_matrix_missing but using the deprecated
73
+ 'required_z' parameter.
74
+ """
75
+ data = np .ones ((5 , 2 ))
76
+ with clib .Session () as lib :
77
+ with pytest .raises (GMTInvalidInput ): # noqa: PT012
78
+ with pytest .warns (FutureWarning ):
79
+ with lib .virtualfile_in (
80
+ data = data , required_z = True , check_kind = "vector"
81
+ ):
82
+ pass
83
+
84
+
69
85
def test_virtualfile_in_fail_non_valid_data (data ):
70
86
"""
71
87
Should raise an exception if too few or too much data is given.
You can’t perform that action at this time.
0 commit comments