Coverage for tests/test_gs.py: 88%

12 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-01-25 02:32 -0800

1# This file is part of lsst-resources. 

2# 

3# Developed for the LSST Data Management System. 

4# This product includes software developed by the LSST Project 

5# (https://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.resources.tests import GenericTestCase 

15 

16try: 

17 from google.cloud import storage 

18except ImportError: 

19 storage = None 

20 

21 

22@unittest.skipIf(not storage, "Warning: google-cloud-storage not found!") 

23class GenericGCSTestCase(GenericTestCase, unittest.TestCase): 

24 scheme = "gs" 

25 netloc = "my_bucket" 

26 

27 

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

29 unittest.main()