Hide keyboard shortcuts

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 obs_lsst. 

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/>. 

21 

22"""Tests of the butler cli subcommands LSST instrument classes. 

23""" 

24 

25import unittest 

26 

27import lsst.utils.tests 

28from lsst.obs.base.cli.butler_cmd_test import ButlerCmdTestBase 

29 

30 

31class TestButlerCmdLsstComCam(ButlerCmdTestBase, lsst.utils.tests.TestCase): 

32 def setUp(self): 

33 self.instrument_class = "lsst.obs.lsst.LsstComCam" 

34 self.instrument_name = "LSSTComCam" 

35 

36 

37class TestButlerCmdLsstImSim(ButlerCmdTestBase, lsst.utils.tests.TestCase): 

38 def setUp(self): 

39 self.instrument_class = "lsst.obs.lsst.LsstImSim" 

40 self.instrument_name = "LSST-ImSim" 

41 

42 

43class TestButlerCmdLsstPhoSim(ButlerCmdTestBase, lsst.utils.tests.TestCase): 

44 def setUp(self): 

45 self.instrument_class = "lsst.obs.lsst.LsstPhoSim" 

46 self.instrument_name = "LSST-PhoSim" 

47 

48 

49class TestButlerCmdLsstTS8(ButlerCmdTestBase, lsst.utils.tests.TestCase): 

50 def setUp(self): 

51 self.instrument_class = "lsst.obs.lsst.LsstTS8" 

52 self.instrument_name = "LSST-TS8" 

53 

54 

55class TestButlerCmdLsstUCDCam(ButlerCmdTestBase, lsst.utils.tests.TestCase): 

56 def setUp(self): 

57 self.instrument_class = "lsst.obs.lsst.LsstUCDCam" 

58 self.instrument_name = "LSST-UCDCam" 

59 

60 

61class TestButlerCmdLsstTS3(ButlerCmdTestBase, lsst.utils.tests.TestCase): 

62 def setUp(self): 

63 self.instrument_class = "lsst.obs.lsst.LsstTS3" 

64 self.instrument_name = "LSST-TS3" 

65 

66 

67class TestButlerCmdLatiss(ButlerCmdTestBase, lsst.utils.tests.TestCase): 

68 def setUp(self): 

69 self.instrument_class = "lsst.obs.lsst.Latiss" 

70 self.instrument_name = "LATISS" 

71 

72 

73def setup_module(module): 

74 lsst.utils.tests.init() 

75 

76 

77if __name__ == '__main__': 77 ↛ 78line 77 didn't jump to line 78, because the condition on line 77 was never true

78 lsst.utils.tests.init() 

79 unittest.main()