Coverage for metadetect / lsst / tests / test_import.py: 100%
5 statements
« prev ^ index » next coverage.py v7.13.2, created at 2026-02-12 01:46 -0800
« prev ^ index » next coverage.py v7.13.2, created at 2026-02-12 01:46 -0800
1# This file is part of metadetect.
2#
3# LSST Data Management System
4# This product includes software developed by the
5# LSST Project (http://www.lsst.org/).
6# See COPYRIGHT file at the top of the source tree.
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation, either version 3 of the License, or
11# (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the LSST License Statement and
19# the GNU General Public License along with this program. If not,
20# see <https://www.lsstcorp.org/LegalNotices/>.
22import unittest
24from lsst.utils.tests import ImportTestCase
27class MetadetectImportTestCase(ImportTestCase):
28 """Test that every file can be imported.
30 metadetect package has dependencies on packages that are not
31 in rubin-env. Routines that needs those packages (for upstream repo)
32 import them on the fly. This test case acts as a place to document those
33 files that can or cannot be imported.
34 """
36 PACKAGES = {
37 "metadetect.lsst",
38 "metadetect",
39 }
40 SKIP_FILES = {
41 "metadetect": {
42 # This depends on the meds package, and are not needed for LSST.
43 "detect.py",
44 }
45 }
48if __name__ == "__main__":
49 unittest.main()