Coverage for tests/test_display_matplotlib.py: 64%

20 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2022-10-05 18:51 +0000

1# 

2# Copyright 2008-2017 AURA/LSST. 

3# 

4# This product includes software developed by the 

5# LSST Project (http://www.lsst.org/). 

6# 

7# This program is free software: you can redistribute it and/or modify 

8# it under the terms of the GNU General Public License as published by 

9# the Free Software Foundation, either version 3 of the License, or 

10# (at your option) any later version. 

11# 

12# This program is distributed in the hope that it will be useful, 

13# but WITHOUT ANY WARRANTY; without even the implied warranty of 

14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 

15# GNU General Public License for more details. 

16# 

17# You should have received a copy of the LSST License Statement and 

18# the GNU General Public License along with this program. If not, 

19# see <https://www.lsstcorp.org/LegalNotices/>. 

20# 

21""" 

22Tests for display_matplotlib 

23""" 

24import unittest 

25 

26import lsst.utils.tests 

27import lsst.afw.display as afwDisplay 

28 

29 

30class DisplayMatplotlibTestCase(unittest.TestCase): 

31 

32 def setUp(self): 

33 pass 

34 

35 def tearDown(self): 

36 pass 

37 

38 def testSetAfwDisplayBackend(self): 

39 """Set the default backend to this package""" 

40 afwDisplay.setDefaultBackend("matplotlib") 

41 

42 def testSetImageColormap(self): 

43 """This is a stand-in for an eventual testcase for changing image 

44 colormap. 

45 

46 The basic outline should look something like: 

47 

48 afwDisplay.setDefaultBackend("matplotlib") 

49 display = afwDisplay.Display() 

50 display.setImageColormap('viridis') 

51 assert display._image_colormap == 'viridis' 

52 """ 

53 pass 

54 

55 

56class TestMemory(lsst.utils.tests.MemoryTestCase): 

57 pass 

58 

59 

60def setup_module(module): 

61 lsst.utils.tests.init() 

62 

63 

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

65 lsst.utils.tests.init() 

66 unittest.main()