File tree Expand file tree Collapse file tree 4 files changed +11
-4
lines changed
google/cloud/firestore_v1 Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,10 @@ def __init__(
109
109
# will have no impact since the _http() @property only lazily
110
110
# creates a working HTTP object.
111
111
super (BaseClient , self ).__init__ (
112
- project = project , credentials = credentials , _http = None
112
+ project = project ,
113
+ credentials = credentials ,
114
+ client_options = client_options ,
115
+ _http = None ,
113
116
)
114
117
self ._client_info = client_info
115
118
if client_options :
Original file line number Diff line number Diff line change 26
26
release_status = "Development Status :: 5 - Production/Stable"
27
27
dependencies = [
28
28
"google-api-core[grpc] >= 1.21.0, < 2.0.0dev" ,
29
- "google-cloud-core >= 1.0.3 , < 2.0dev" ,
29
+ "google-cloud-core >= 1.4.1 , < 2.0dev" ,
30
30
"pytz" ,
31
31
"libcst >= 0.2.5" ,
32
32
"proto-plus >= 1.3.0" ,
Original file line number Diff line number Diff line change @@ -63,10 +63,12 @@ def test_constructor_with_emulator_host(self):
63
63
getenv .assert_called_once_with (_FIRESTORE_EMULATOR_HOST )
64
64
65
65
def test_constructor_explicit (self ):
66
+ from google .api_core .client_options import ClientOptions
67
+
66
68
credentials = _make_credentials ()
67
69
database = "now-db"
68
70
client_info = mock .Mock ()
69
- client_options = mock . Mock ( )
71
+ client_options = ClientOptions ( "endpoint" )
70
72
client = self ._make_one (
71
73
project = self .PROJECT ,
72
74
credentials = credentials ,
Original file line number Diff line number Diff line change @@ -61,10 +61,12 @@ def test_constructor_with_emulator_host(self):
61
61
getenv .assert_called_once_with (_FIRESTORE_EMULATOR_HOST )
62
62
63
63
def test_constructor_explicit (self ):
64
+ from google .api_core .client_options import ClientOptions
65
+
64
66
credentials = _make_credentials ()
65
67
database = "now-db"
66
68
client_info = mock .Mock ()
67
- client_options = mock . Mock ( )
69
+ client_options = ClientOptions ( "endpoint" )
68
70
client = self ._make_one (
69
71
project = self .PROJECT ,
70
72
credentials = credentials ,
You can’t perform that action at this time.
0 commit comments