diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a18da29..f83a43f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -44,7 +44,7 @@ jobs: cd .. python -m venv testenv testenv/bin/pip install pytest pytest-astropy pytest-tornasync lcviz/dist/*.whl - testenv/bin/python -c "import lcviz; lcviz.test(remote_data=True)" + testenv/bin/pytest -p no:warnings --astropy-header --remote-data --pyargs lcviz # NOTE: Do not run this part for PR testing. - name: Publish distribution 📦 to PyPI diff --git a/CHANGES.rst b/CHANGES.rst index 4240889..1e7b630 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -3,6 +3,8 @@ * Add support for loading TESS DVT files. [#164] +* Removed ``lcviz.test()``. Use ``pytest --pyargs lcviz "`` instead + to test your copy of ``lcviz``. [#172] 1.0.0 (12-02-2024) ------------------ diff --git a/lcviz/__init__.py b/lcviz/__init__.py index 3f9e131..bb83888 100644 --- a/lcviz/__init__.py +++ b/lcviz/__init__.py @@ -1,8 +1,5 @@ # Licensed under a 3-clause BSD style license - see LICENSE.rst -import os -from astropy.tests.runner import TestRunner - try: from .version import version as __version__ except ImportError: @@ -18,6 +15,3 @@ from .tools import * # noqa from .viewers import * # noqa from .helper import * # noqa - -# Create the test function for self test -test = TestRunner.make_test_runner_in(os.path.dirname(__file__))