Coverage for tests/test_import.py: 50%

18 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-04-07 00:47 +0000

1import unittest 

2 

3import lsst.utils.tests 

4try: 

5 import lsst.display.astrowidgets as displayAstrowidgets 

6except ImportError: 

7 displayAstrowidgets = None 

8 pass 

9 

10 

11class ImportTest(unittest.TestCase): 

12 def testImport(self): 

13 if displayAstrowidgets is not None: 

14 self.assertTrue(hasattr(displayAstrowidgets, "AstroWidgetsVersion")) 

15 

16 

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

18 pass 

19 

20 

21def setup_module(module): 

22 lsst.utils.tests.init() 

23 

24 

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

26 lsst.utils.tests.init() 

27 unittest.main()