Skip to content

Commit

Permalink
Fix imported unit test
Browse files Browse the repository at this point in the history
Configurable actions have moved to pex_config with only a stub
remaining in pipe_tasks. This stub is not a package and thus
cannot be checked with package import syntax. Tests on this
code live in pex_config now.
  • Loading branch information
natelust committed Mar 23, 2023
1 parent 8bc7785 commit 1a8a94b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
13 changes: 8 additions & 5 deletions python/lsst/pipe/tasks/configurableActions.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import warnings

warnings.warn('lsst.pipe.tasks.configurableActions is deprecated; '
'it has been moved to lsst.pex.config.configurableActions. '
'Accessing though lsst.pipe.tasks will be removed from '
'Science Pipelines after release 26.0.0', category=FutureWarning)
warnings.warn(
"lsst.pipe.tasks.configurableActions is deprecated; "
"it has been moved to lsst.pex.config.configurableActions. "
"Accessing though lsst.pipe.tasks will be removed from "
"Science Pipelines after release 26.0.0",
category=FutureWarning
)

from lsst.pex.config.configurableActions import *
from lsst.pex.config.configurableActions import * # noqa: F401 E402, F403
3 changes: 0 additions & 3 deletions tests/test_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ def test_import_script(self):
def test_import_dataFrameActions(self):
self.assertImport("lsst.pipe.tasks.dataFrameActions")

def test_import_configurableActions(self):
self.assertImport("lsst.pipe.tasks.configurableActions")

def assertImport(self, root_pkg):
for file in importlib.resources.contents(root_pkg):
if not file.endswith(".py"):
Expand Down

0 comments on commit 1a8a94b

Please sign in to comment.