diff --git a/boule/__init__.py b/boule/__init__.py index cbdd2abb..6f8ebd55 100644 --- a/boule/__init__.py +++ b/boule/__init__.py @@ -12,40 +12,3 @@ from .triaxialellipsoid import TriaxialEllipsoid ELLIPSOIDS = [WGS84, GRS80, MARS, VENUS, MOON, MERCURY] - - -def test(doctest=True, verbose=True): - """ - Run the test suite. - - Uses `py.test `__ to discover and run the tests. - - Parameters - ---------- - - doctest : bool - If ``True``, will run the doctests as well (code examples that start - with a ``>>>`` in the docs). - verbose : bool - If ``True``, will print extra information during the test run. - - Raises - ------ - - AssertionError - If pytest returns a non-zero error code indicating that some tests have - failed. - - """ - import pytest - - package = __name__ - args = [] - if verbose: - args.append("-vv") - if doctest: - args.append("--doctest-modules") - args.append("--pyargs") - args.append(package) - status = pytest.main(args) - assert status == 0, "Some tests have failed." diff --git a/doc/api/index.rst b/doc/api/index.rst index 4079a446..f6c8b277 100644 --- a/doc/api/index.rst +++ b/doc/api/index.rst @@ -20,11 +20,3 @@ Reference Ellipsoid All ellipsoids are instances of these classes. See the class reference documentation for a list their derived physical properties (attributes) and computations/transformations that they can perform (methods). - -Utilities ---------- - -.. autosummary:: - :toctree: generated/ - - test