Skip to content

Replace "option" by "parameter" in tests #2176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pygmt/tests/test_coast.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_coast_dcw_single():
@pytest.mark.mpl_image_compare
def test_coast_dcw_list():
"""
Test passing a list of country codes and fill options to dcw.
Test passing a list of country codes and fill arguments to dcw.
"""
fig = Figure()
fig.coast(
Expand Down
12 changes: 6 additions & 6 deletions pygmt/tests/test_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def test_info_1d_array():

def test_info_per_column():
"""
Make sure the per_column option works.
Make sure the per_column parameter works.
"""
output = info(data=POINTS_DATA, per_column=True)
npt.assert_allclose(
Expand All @@ -175,7 +175,7 @@ def test_info_per_column():

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

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


def test_info_spacing_bounding_box():
"""
Make sure the spacing option for writing a bounding box works.
Make sure the spacing parameter for writing a bounding box works.
"""
output = info(data=POINTS_DATA, spacing="b")
npt.assert_allclose(
Expand All @@ -211,15 +211,15 @@ def test_info_spacing_bounding_box():

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


def test_info_nearest_multiple():
"""
Make sure the nearest_multiple option works.
Make sure the nearest_multiple parameter works.
"""
output = info(data=POINTS_DATA, nearest_multiple=0.1)
npt.assert_allclose(actual=output, desired=[11.5, 61.8, 0.1])
Expand Down
2 changes: 1 addition & 1 deletion pygmt/tests/test_solar.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_invalid_parameter():
"""
fig = Figure()
with pytest.raises(GMTInvalidInput):
# Use single-letter option 'T' for testing
# Use single-letter parameter 'T' for testing
fig.solar(
region="d", projection="W0/15c", frame="a", T="d+d1990-02-17T04:25:00"
)
Expand Down