Skip to content

Commit 6149c53

Browse files
Replace "option" by "parameter" in tests (#2176)
1 parent 952e754 commit 6149c53

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

pygmt/tests/test_coast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_coast_dcw_single():
6161
@pytest.mark.mpl_image_compare
6262
def test_coast_dcw_list():
6363
"""
64-
Test passing a list of country codes and fill options to dcw.
64+
Test passing a list of country codes and fill arguments to dcw.
6565
"""
6666
fig = Figure()
6767
fig.coast(

pygmt/tests/test_info.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def test_info_1d_array():
165165

166166
def test_info_per_column():
167167
"""
168-
Make sure the per_column option works.
168+
Make sure the per_column parameter works.
169169
"""
170170
output = info(data=POINTS_DATA, per_column=True)
171171
npt.assert_allclose(
@@ -175,7 +175,7 @@ def test_info_per_column():
175175

176176
def test_info_per_column_with_time_inputs():
177177
"""
178-
Make sure the per_column option works with time inputs.
178+
Make sure the per_column parameter works with time inputs.
179179
"""
180180
table = pd.date_range(start="2020-01-01", periods=5).to_numpy()
181181
output = info(data=table, per_column=True)
@@ -186,15 +186,15 @@ def test_info_per_column_with_time_inputs():
186186

187187
def test_info_spacing():
188188
"""
189-
Make sure the spacing option works.
189+
Make sure the spacing parameter works.
190190
"""
191191
output = info(data=POINTS_DATA, spacing=0.1)
192192
npt.assert_allclose(actual=output, desired=[11.5, 61.8, -3, 7.9])
193193

194194

195195
def test_info_spacing_bounding_box():
196196
"""
197-
Make sure the spacing option for writing a bounding box works.
197+
Make sure the spacing parameter for writing a bounding box works.
198198
"""
199199
output = info(data=POINTS_DATA, spacing="b")
200200
npt.assert_allclose(
@@ -211,15 +211,15 @@ def test_info_spacing_bounding_box():
211211

212212
def test_info_per_column_spacing():
213213
"""
214-
Make sure the per_column and spacing options work together.
214+
Make sure the per_column and spacing parameters work together.
215215
"""
216216
output = info(data=POINTS_DATA, per_column=True, spacing=0.1)
217217
npt.assert_allclose(actual=output, desired=[11.5, 61.8, -3, 7.9, 0.1412, 0.9338])
218218

219219

220220
def test_info_nearest_multiple():
221221
"""
222-
Make sure the nearest_multiple option works.
222+
Make sure the nearest_multiple parameter works.
223223
"""
224224
output = info(data=POINTS_DATA, nearest_multiple=0.1)
225225
npt.assert_allclose(actual=output, desired=[11.5, 61.8, 0.1])

pygmt/tests/test_solar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_invalid_parameter():
8484
"""
8585
fig = Figure()
8686
with pytest.raises(GMTInvalidInput):
87-
# Use single-letter option 'T' for testing
87+
# Use single-letter parameter 'T' for testing
8888
fig.solar(
8989
region="d", projection="W0/15c", frame="a", T="d+d1990-02-17T04:25:00"
9090
)

0 commit comments

Comments
 (0)