Coverage for tests/test_gs.py: 100%
10 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-07-12 10:52 -0700
« prev ^ index » next coverage.py v7.2.7, created at 2023-07-12 10:52 -0700
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 """Generic tests of google cloud storage URI format."""
26 scheme = "gs"
27 netloc = "my_bucket"
30if __name__ == "__main__":
31 unittest.main()