From 183a619332a9af41d8c5821ee9f2cbeac338fa3e Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Thu, 7 Dec 2023 13:19:08 -0500 Subject: [PATCH] enable lcviz.test() --- lcviz/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lcviz/__init__.py b/lcviz/__init__.py index bb838887..3f9e1316 100644 --- a/lcviz/__init__.py +++ b/lcviz/__init__.py @@ -1,5 +1,8 @@ # 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: @@ -15,3 +18,6 @@ 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__))