Skip to content

Commit 231c79f

Browse files
seismanmaxrjonesyvonnefroehlich
authored
Use consistent docstrings for test files (#2578)
Co-authored-by: Max Jones <[email protected]> Co-authored-by: Yvonne Fröhlich <[email protected]>
1 parent 371d626 commit 231c79f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+64
-64
lines changed

pygmt/tests/test_basemap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests Figure.basemap.
2+
Test Figure.basemap.
33
"""
44
import pytest
55
from pygmt import Figure

pygmt/tests/test_binstats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for binstats.
2+
Test pygmt.binstats.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_blockm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for blockmean and blockmode.
2+
Test pygmt.blockmean and pygmt.blockmode.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_blockmedian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for blockmedian.
2+
Test pygmt.blockmedian.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_clib_loading.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test_clib_names():
5757

5858

5959
###############################################################################
60-
# Tests for load_libgmt
60+
# Test load_libgmt
6161
def test_load_libgmt():
6262
"""
6363
Test that loading libgmt works and doesn't crash.
@@ -208,7 +208,7 @@ def test_brokenlib_brokenlib_workinglib(
208208

209209

210210
###############################################################################
211-
# Tests for clib_full_names
211+
# Test clib_full_names
212212
@pytest.fixture(scope="module", name="gmt_lib_names")
213213
def fixture_gmt_lib_names():
214214
"""

pygmt/tests/test_coast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for fig.coast.
2+
Test Figure.coast.
33
"""
44
import pytest
55
from pygmt import Figure

pygmt/tests/test_colorbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests colorbar.
2+
Test Figure.colorbar.
33
"""
44
import pytest
55
from pygmt import Figure

pygmt/tests/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for pygmt.config.
2+
Test pygmt.config.
33
"""
44
import pytest
55
from pygmt import Figure, config

pygmt/tests/test_contour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pylint: disable=redefined-outer-name
22
"""
3-
Tests contour.
3+
Test Figure.contour.
44
"""
55
import os
66

pygmt/tests/test_dimfilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for dimfilter.
2+
Test pygmt.dimfilter.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_filter1d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for filter1d.
2+
Test pygmt.filter1d.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_geopandas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests on integration with geopandas.
2+
Test integration with geopandas.
33
"""
44
import numpy.testing as npt
55
import pytest

pygmt/tests/test_grd2cpt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for grd2cpt.
2+
Test pygmt.grd2cpt.
33
"""
44
import os
55

pygmt/tests/test_grd2xyz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for grd2xyz.
2+
Test pygmt.grd2xyz.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_grdclip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for grdclip.
2+
Test pygmt.grdclip.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_grdcut.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for grdcut.
2+
Test pygmt.grdcut.
33
"""
44
import numpy as np
55
import pytest

pygmt/tests/test_grdfill.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for grdfill.
2+
Test pygmt.grdfill.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_grdfilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for grdfilter.
2+
Test pygmt.grdfilter.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_grdgradient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for grdgradient.
2+
Test pygmt.grdgradient.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_grdhisteq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for grdhisteq.
2+
Test pygmt.grdhisteq.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_grdinfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for grdinfo.
2+
Test pygmt.grdinfo.
33
"""
44
import numpy as np
55
import pytest

pygmt/tests/test_grdlandmask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for grdlandmask.
2+
Test pygmt.grdlandmask.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_grdproject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for grdproject.
2+
Test pygmt.grdproject.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_grdsample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for grdsample.
2+
Test pygmt.grdsample.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_grdtrack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for grdtrack.
2+
Test pygmt.grdtrack.
33
"""
44
import os
55
from pathlib import Path

pygmt/tests/test_grdview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests grdview.
2+
Test Figure.grdview.
33
"""
44
import pytest
55
from pygmt import Figure, grdcut

pygmt/tests/test_grdvolume.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for grdvolume.
2+
Test pygmt.grdvolume.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests the helper functions/classes/etc used in wrapping GMT.
2+
Test the helper functions/classes/etc used in wrapping GMT.
33
"""
44
import os
55

pygmt/tests/test_histogram.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pylint: disable=redefined-outer-name
22
"""
3-
Tests histogram.
3+
Test Figure.histogram.
44
"""
55
import pandas as pd
66
import pytest
@@ -10,7 +10,7 @@
1010
@pytest.fixture(scope="module", name="data", params=[list, pd.Series])
1111
def fixture_data(request):
1212
"""
13-
Returns a list of integers to be used in the histogram.
13+
Return a list of integers to be used in the histogram.
1414
"""
1515
data = [1, 1, 1, 1, 1, 1, 2, 2, 2, 3, 4, 5, 6, 7, 8, 8, 8, 8, 8, 8]
1616
return request.param(data)
@@ -19,7 +19,7 @@ def fixture_data(request):
1919
@pytest.mark.mpl_image_compare(filename="test_histogram.png")
2020
def test_histogram(data):
2121
"""
22-
Tests plotting a histogram using a sequence of integers from a table.
22+
Test plotting a histogram using a sequence of integers from a table.
2323
"""
2424
fig = Figure()
2525
fig.histogram(

pygmt/tests/test_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests image.
2+
Test Figure.image.
33
"""
44
import os
55
import sys

pygmt/tests/test_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for gmtinfo.
2+
Test pygmt.info.
33
"""
44
import os
55
import pathlib

pygmt/tests/test_inset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for the inset function.
2+
Test Figure.inset.
33
"""
44
import pytest
55
from pygmt import Figure

pygmt/tests/test_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for input/output (I/O) utilities.
2+
Test input/output (I/O) utilities.
33
"""
44
import numpy as np
55
import pytest

pygmt/tests/test_legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for legend.
2+
Test Figure.legend.
33
"""
44
import pytest
55
from pygmt import Figure

pygmt/tests/test_logo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for fig.logo.
2+
Test Figure.logo.
33
"""
44
import pytest
55
from pygmt import Figure

pygmt/tests/test_makecpt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for makecpt.
2+
Test pygmt.makecpt.
33
"""
44
import os
55
from pathlib import Path

pygmt/tests/test_meca.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for meca.
2+
Test Figure.meca.
33
"""
44
import numpy as np
55
import pandas as pd

pygmt/tests/test_nearneighbor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for nearneighbor.
2+
Test pygmt.nearneighbor.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pylint: disable=redefined-outer-name
22
"""
3-
Tests plot.
3+
Test Figure.plot.
44
"""
55
import datetime
66
import os

pygmt/tests/test_plot3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests plot3d.
2+
Test Figure.plot3d.
33
"""
44
import os
55
from pathlib import Path

pygmt/tests/test_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for project.
2+
Test pygmt.project.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_psconvert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests psconvert.
2+
Test Figure.psconvert.
33
"""
44
import os
55

pygmt/tests/test_rose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for rose.
2+
Test Figure.rose.
33
"""
44
import numpy as np
55
import pytest

pygmt/tests/test_select.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for select.
2+
Test pygmt.select.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_solar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for solar.
2+
Test Figure.solar.
33
"""
44
import datetime
55

pygmt/tests/test_sph2grd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for sph2grd.
2+
Test pygmt.sph2grd.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_sphdistance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for sphdistance.
2+
Test pygmt.sphdistance.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_sphinterpolate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for sphinterpolate.
2+
Test pygmt.sphinterpolate.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_subplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests subplot.
2+
Test Figure.subplot.
33
"""
44
import pytest
55
from pygmt import Figure

pygmt/tests/test_surface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests for surface.
2+
Test pygmt.surface.
33
"""
44
from pathlib import Path
55

pygmt/tests/test_ternary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests ternary.
2+
Test Figure.ternary.
33
"""
44
import numpy as np
55
import pytest

pygmt/tests/test_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Tests text.
2+
Test Figure.text.
33
"""
44
import os
55

0 commit comments

Comments
 (0)