- Update to 2.2.1 Bug Fixes * remove py.typed marker file for PEP 561 (#735), closes (#734) - from version 2.2.0 Features * allow no project in client methods using storage emulator (#703) Bug Fixes * add user agent in python-storage when calling resumable media (c7bf615) * **deps:** require google-api-core>=1.31.5, >=2.3.2 (#722) (e9aab38) * Fix BlobReader handling of interleaved reads and seeks (#721) (5d1cfd2) * retry client side requests timeout (#727) (e0b3b35) Documentation * fixed download_blob_to_file example (#704) (2c94d98) - from 2.1.0 Features * add turbo replication support and samples (#622) (4dafc81) * avoid authentication with storage emulator (#679) (8789afa) * remove python 3.6 support (#689) (8aa4130) - from version 2.0.0 BREAKING CHANGES * Remove Python 2 support (#657) Features * Remove Python 2 support (#657) (b611670) - from version 1.44.0 Features * add raw_download kwarg to BlobReader (#668) (10cdad6) Documentation * Describe code sample more specifically (#660) (0459cb4) * refresh readme instructions (#667) (ceb9314) * This is just a simple PR to better describe what the code OBS-URL: https://build.opensuse.org/request/show/969826 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-cloud-storage?expand=0&rev=30
48 lines
1.6 KiB
Diff
48 lines
1.6 KiB
Diff
diff -Nru google-cloud-storage-2.2.1.orig/tests/unit/test_client.py google-cloud-storage-2.2.1/tests/unit/test_client.py
|
|
--- google-cloud-storage-2.2.1.orig/tests/unit/test_client.py 2022-03-15 20:58:01.000000000 +0100
|
|
+++ google-cloud-storage-2.2.1/tests/unit/test_client.py 2022-04-13 11:48:44.913965418 +0200
|
|
@@ -17,9 +17,11 @@
|
|
import io
|
|
import json
|
|
import mock
|
|
+import os.path
|
|
import pytest
|
|
import re
|
|
import requests
|
|
+import sys
|
|
import unittest
|
|
import urllib
|
|
|
|
@@ -32,7 +34,8 @@
|
|
from google.cloud.storage.retry import DEFAULT_RETRY
|
|
from google.cloud.storage.retry import DEFAULT_RETRY_IF_GENERATION_SPECIFIED
|
|
|
|
-from . import _read_local_json
|
|
+sys.path.insert(0, os.path.abspath(os.path.join(__file__, '..', '..')))
|
|
+from unit import _read_local_json
|
|
|
|
_SERVICE_ACCOUNT_JSON = _read_local_json("url_signer_v4_test_account.json")
|
|
_CONFORMANCE_TESTS = _read_local_json("url_signer_v4_test_data.json")[
|
|
diff -Nru google-cloud-storage-2.2.1.orig/tests/unit/test__signing.py google-cloud-storage-2.2.1/tests/unit/test__signing.py
|
|
--- google-cloud-storage-2.2.1.orig/tests/unit/test__signing.py 2022-03-15 20:58:01.000000000 +0100
|
|
+++ google-cloud-storage-2.2.1/tests/unit/test__signing.py 2022-04-13 11:47:30.200372762 +0200
|
|
@@ -19,6 +19,8 @@
|
|
import calendar
|
|
import datetime
|
|
import json
|
|
+import os.path
|
|
+import sys
|
|
import time
|
|
import unittest
|
|
import urllib.parse
|
|
@@ -26,7 +28,8 @@
|
|
import mock
|
|
import pytest
|
|
|
|
-from . import _read_local_json
|
|
+sys.path.insert(0, os.path.abspath(os.path.join(__file__, '..', '..')))
|
|
+from unit import _read_local_json
|
|
|
|
|
|
_SERVICE_ACCOUNT_JSON = _read_local_json("url_signer_v4_test_account.json")
|