Skip to content

Commit ac0d293

Browse files
authored
Remove astropy test runner (#172)
* Remove astropy test runner
1 parent 1ebfb48 commit ac0d293

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
cd ..
4545
python -m venv testenv
4646
testenv/bin/pip install pytest pytest-astropy pytest-tornasync lcviz/dist/*.whl
47-
testenv/bin/python -c "import lcviz; lcviz.test(remote_data=True)"
47+
testenv/bin/pytest -p no:warnings --astropy-header --remote-data --pyargs lcviz
4848
4949
# NOTE: Do not run this part for PR testing.
5050
- name: Publish distribution 📦 to PyPI

CHANGES.rst

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
* Add support for loading TESS DVT files. [#164]
55

6+
* Removed ``lcviz.test()``. Use ``pytest --pyargs lcviz <options>"`` instead
7+
to test your copy of ``lcviz``. [#172]
68

79
1.0.0 (12-02-2024)
810
------------------

lcviz/__init__.py

-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
22

3-
import os
4-
from astropy.tests.runner import TestRunner
5-
63
try:
74
from .version import version as __version__
85
except ImportError:
@@ -18,6 +15,3 @@
1815
from .tools import * # noqa
1916
from .viewers import * # noqa
2017
from .helper import * # noqa
21-
22-
# Create the test function for self test
23-
test = TestRunner.make_test_runner_in(os.path.dirname(__file__))

0 commit comments

Comments
 (0)