Coverage for tests/test_import.py: 75%

6 statements  

« prev     ^ index     » next       coverage.py v7.3.2, created at 2023-10-05 12:34 +0000

1# This file is part of drp_tasks. 

2# 

3# LSST Data Management System 

4# This product includes software developed by the 

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

6# See COPYRIGHT file at the top of the source tree. 

7# 

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

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

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

11# (at your option) any later version. 

12# 

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

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

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

16# GNU General Public License for more details. 

17# 

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

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

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

21 

22import unittest 

23 

24from lsst.utils.tests import ImportTestCase 

25 

26 

27class DrpTasksImportTestCase(ImportTestCase): 

28 """Test that every file can be imported. 

29 

30 drp_tasks does not import all the task code by default and not 

31 every file will always have a test. 

32 """ 

33 

34 PACKAGES = {"lsst.drp.tasks"} 

35 

36 

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

38 unittest.main()