Skip to content
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

Remove the boule.test function #116

Merged
merged 1 commit into from
Jun 14, 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
37 changes: 0 additions & 37 deletions boule/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <http://pytest.org/>`__ 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."
8 changes: 0 additions & 8 deletions doc/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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