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 astropy test runner #172

Merged
merged 2 commits into from
Feb 19, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

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

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

1.0.0 (12-02-2024)
------------------
Expand Down
6 changes: 0 additions & 6 deletions lcviz/__init__.py
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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__))
Loading