Skip to content

Commit

Permalink
Add simple test force loading of script code
Browse files Browse the repository at this point in the history
We do not have any script tests at this time.
  • Loading branch information
timj committed Jan 3, 2024
1 parent 9a28f76 commit f3186af
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions tests/test_import.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This file is part of dax_obscore.
#
# LSST Data Management System
# This product includes software developed by the
# LSST Project (http://www.lsst.org/).
# See COPYRIGHT file at the top of the source tree.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the LSST License Statement and
# the GNU General Public License along with this program. If not,
# see <https://www.lsstcorp.org/LegalNotices/>.

import unittest

from lsst.utils.tests import ImportTestCase


class PipeTasksImportTestCase(ImportTestCase):
"""Test that every file can be imported.
pipe_tasks does not import all the task code by default and not
every file currently has a test.
"""

PACKAGES = {
"lsst.dax.obscore.cli.cmd",
"lsst.dax.obscore.script",
}


if __name__ == "__main__":
unittest.main()

Check warning on line 41 in tests/test_import.py

View check run for this annotation

Codecov / codecov/patch

tests/test_import.py#L41

Added line #L41 was not covered by tests

0 comments on commit f3186af

Please sign in to comment.