File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ Storage <http://code.google.com/apis/storage/>`_. This is achieved by providing
9
9
a backend that utilizes `boto <http://boto.cloudhackers.com/ >`_ (preferably >=
10
10
2.25).
11
11
12
+ ``boto `` doesn't support using Google Storage with Python3. For this
13
+ reason simplekv has a separate Google Storage implementation for Python3 at
14
+ :class: `~simplekv.net.gcstore.GoogleCloudStore ` which uses Google's
15
+ ``google-cloud-storage `` library.
16
+
12
17
Note that boto is not a dependency for simplekv. You need to install it
13
18
manually, otherwise you will see an :exc: `~exceptions.ImportError `.
14
19
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ def gc_credentials():
39
39
# at https://storage.googleapis.com
40
40
os .environ ["STORAGE_EMULATOR_HOST" ] = emulator_endpoint
41
41
credentials = AnonymousCredentials ()
42
- # if no endpoint was defined we're running against actual GC and need credentials
43
42
else :
44
43
# if no endpoint was defined we're running against actual GC and need credentials
45
44
credentials = credentials_path
@@ -125,6 +124,8 @@ def test_gcstore_pickling_attrs():
125
124
class TestExtendedKeysGCStore (TestGoogleCloudStore , ExtendedKeyspaceTests ):
126
125
@pytest .fixture (scope = "class" )
127
126
def dirty_store (self , gc_credentials ):
127
+ # This overwrites the module-level fixture and returns an ExtendedKeysStore
128
+ # instead of the regular one
128
129
uuid = str (uuid4 ())
129
130
# if we have a credentials.json that specifies the project name, else we pick one
130
131
if type (gc_credentials ) == AnonymousCredentials :
You can’t perform that action at this time.
0 commit comments