Skip to content

Commit 80a178d

Browse files
committed
Fix
1 parent 2ac4386 commit 80a178d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pygmt/tests/test_clib_virtualfile_in.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_virtualfile_in_required_z_matrix(array_func, kind):
4242
data = array_func(dataframe)
4343
with clib.Session() as lib:
4444
with lib.virtualfile_in(
45-
data=data, required_ncols=3, check_kind="vector"
45+
data=data, required_cols=3, check_kind="vector"
4646
) as vfile:
4747
with GMTTempFile() as outfile:
4848
lib.call_module("info", [vfile, f"->{outfile.name}"])
@@ -64,7 +64,7 @@ def test_virtualfile_in_required_z_matrix_missing():
6464
data = np.ones((5, 2))
6565
with clib.Session() as lib:
6666
with pytest.raises(GMTInvalidInput):
67-
with lib.virtualfile_in(data=data, required_ncols=3, check_kind="vector"):
67+
with lib.virtualfile_in(data=data, required_cols=3, check_kind="vector"):
6868
pass
6969

7070

@@ -91,7 +91,7 @@ def test_virtualfile_in_fail_non_valid_data(data):
9191
with clib.Session() as lib:
9292
with pytest.raises(GMTInvalidInput):
9393
lib.virtualfile_in(
94-
x=variable[0], y=variable[1], z=variable[2], required_ncols=3
94+
x=variable[0], y=variable[1], z=variable[2], required_cols=3
9595
)
9696

9797
# Should also fail if given too much data

0 commit comments

Comments
 (0)