Coverage for tests/test_instrument.py : 61%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# This file is part of daf_butler.
2#
3# Developed for the LSST Data Management System.
4# This product includes software developed by the LSST Project
5# (http://www.lsst.org).
6# See the COPYRIGHT file at the top-level directory of this distribution
7# for details of code ownership.
8#
9# This program is free software: you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program. If not, see <http://www.gnu.org/licenses/>.
22"""Tests of the HyperSuprimeCam instrument class.
23"""
25import unittest
27import lsst.utils.tests
28from lsst.obs.base.instrument_tests import InstrumentTests, InstrumentTestData
31class TestHyperSuprimeCam(InstrumentTests, lsst.utils.tests.TestCase):
32 def setUp(self):
33 physical_filters = {"HSC-G",
34 "HSC-R",
35 "HSC-R2",
36 "HSC-I",
37 "HSC-I2",
38 "HSC-Z",
39 "HSC-Y",
40 "ENG-R1",
41 "NB0387",
42 "NB0400",
43 "NB0468",
44 "NB0515",
45 "NB0527",
46 "NB0656",
47 "NB0718",
48 "NB0816",
49 "NB0921",
50 "NB0926",
51 "IB0945",
52 "NB0973",
53 "NB1010",
54 "SH",
55 "PH",
56 "NONE"}
57 self.data = InstrumentTestData(name="HSC",
58 nDetectors=112,
59 firstDetectorName="1_53",
60 physical_filters=physical_filters)
62 self.instrument = lsst.obs.subaru.HyperSuprimeCam()
65class MemoryTester(lsst.utils.tests.MemoryTestCase):
66 pass
69def setup_module(module):
70 lsst.utils.tests.init()
73if __name__ == '__main__': 73 ↛ 74line 73 didn't jump to line 74, because the condition on line 73 was never true
74 lsst.utils.tests.init()
75 unittest.main()