Coverage for tests/test_import.py: 83%

6 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-07-25 09:27 +0000

1# This file is part of utils. 

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# Use of this source code is governed by a 3-clause BSD-style 

10# license that can be found in the LICENSE file. 

11 

12import unittest 

13 

14from lsst.utils.tests import ImportTestCase 

15 

16 

17class TestImports(ImportTestCase): 

18 """Test we can run the import tests. 

19 

20 All the code in utils is being tested and imported already but this 

21 will confirm the test infrastructure works. 

22 """ 

23 

24 PACKAGES = ("lsst.utils",) 

25 

26 def test_counter(self): 

27 """Test that the expected number of packages were registered.""" 

28 self.assertEqual(self._n_registered, 1) 

29 

30 

31if __name__ == "__main__": 

32 unittest.main()