Coverage for tests/test_gs.py: 88%
12 statements
« prev ^ index » next coverage.py v6.4, created at 2022-05-25 10:21 +0000
« prev ^ index » next coverage.py v6.4, created at 2022-05-25 10:21 +0000
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.
12import unittest
14from lsst.resources.tests import GenericTestCase
16try:
17 from google.cloud import storage
18except ImportError:
19 storage = None
22@unittest.skipIf(not storage, "Warning: google-cloud-storage not found!")
23class GenericGCSTestCase(GenericTestCase, unittest.TestCase):
24 scheme = "gs"
25 netloc = "my_bucket"
28if __name__ == "__main__": 28 ↛ 29line 28 didn't jump to line 29, because the condition on line 28 was never true
29 unittest.main()