@@ -79,7 +79,7 @@ def test_cancel_build(self, get_conn):
79
79
self .hook .cancel_build (id_ = BUILD_ID , project_id = PROJECT_ID )
80
80
81
81
get_conn .return_value .cancel_build .assert_called_once_with (
82
- request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = None
82
+ request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = ()
83
83
)
84
84
85
85
@patch ("airflow.providers.google.cloud.hooks.cloud_build.CloudBuildHook._get_build_id_from_operation" )
@@ -94,13 +94,13 @@ def test_create_build_with_wait(self, get_conn, wait_time, mock_get_id_from_oper
94
94
self .hook .create_build (build = BUILD , project_id = PROJECT_ID )
95
95
96
96
get_conn .return_value .create_build .assert_called_once_with (
97
- request = {'project_id' : PROJECT_ID , 'build' : BUILD }, retry = None , timeout = None , metadata = None
97
+ request = {'project_id' : PROJECT_ID , 'build' : BUILD }, retry = None , timeout = None , metadata = ()
98
98
)
99
99
100
100
get_conn .return_value .create_build .return_value .result .assert_called_once_with ()
101
101
102
102
get_conn .return_value .get_build .assert_called_once_with (
103
- request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = None
103
+ request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = ()
104
104
)
105
105
106
106
@patch ("airflow.providers.google.cloud.hooks.cloud_build.CloudBuildHook._get_build_id_from_operation" )
@@ -112,11 +112,11 @@ def test_create_build_without_wait(self, get_conn, mock_get_id_from_operation):
112
112
self .hook .create_build (build = BUILD , project_id = PROJECT_ID , wait = False )
113
113
114
114
get_conn .return_value .create_build .assert_called_once_with (
115
- request = {'project_id' : PROJECT_ID , 'build' : BUILD }, retry = None , timeout = None , metadata = None
115
+ request = {'project_id' : PROJECT_ID , 'build' : BUILD }, retry = None , timeout = None , metadata = ()
116
116
)
117
117
118
118
get_conn .return_value .get_build .assert_called_once_with (
119
- request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = None
119
+ request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = ()
120
120
)
121
121
122
122
@patch ("airflow.providers.google.cloud.hooks.cloud_build.CloudBuildHook.get_conn" )
@@ -127,7 +127,7 @@ def test_create_build_trigger(self, get_conn):
127
127
request = {'project_id' : PROJECT_ID , 'trigger' : BUILD_TRIGGER },
128
128
retry = None ,
129
129
timeout = None ,
130
- metadata = None ,
130
+ metadata = () ,
131
131
)
132
132
133
133
@patch ("airflow.providers.google.cloud.hooks.cloud_build.CloudBuildHook.get_conn" )
@@ -138,15 +138,15 @@ def test_delete_build_trigger(self, get_conn):
138
138
request = {'project_id' : PROJECT_ID , 'trigger_id' : TRIGGER_ID },
139
139
retry = None ,
140
140
timeout = None ,
141
- metadata = None ,
141
+ metadata = () ,
142
142
)
143
143
144
144
@patch ("airflow.providers.google.cloud.hooks.cloud_build.CloudBuildHook.get_conn" )
145
145
def test_get_build (self , get_conn ):
146
146
self .hook .get_build (id_ = BUILD_ID , project_id = PROJECT_ID )
147
147
148
148
get_conn .return_value .get_build .assert_called_once_with (
149
- request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = None
149
+ request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = ()
150
150
)
151
151
152
152
@patch ("airflow.providers.google.cloud.hooks.cloud_build.CloudBuildHook.get_conn" )
@@ -157,7 +157,7 @@ def test_get_build_trigger(self, get_conn):
157
157
request = {'project_id' : PROJECT_ID , 'trigger_id' : TRIGGER_ID },
158
158
retry = None ,
159
159
timeout = None ,
160
- metadata = None ,
160
+ metadata = () ,
161
161
)
162
162
163
163
@patch ("airflow.providers.google.cloud.hooks.cloud_build.CloudBuildHook.get_conn" )
@@ -168,7 +168,7 @@ def test_list_build_triggers(self, get_conn):
168
168
request = {'parent' : PARENT , 'project_id' : PROJECT_ID , 'page_size' : None , 'page_token' : None },
169
169
retry = None ,
170
170
timeout = None ,
171
- metadata = None ,
171
+ metadata = () ,
172
172
)
173
173
174
174
@patch ("airflow.providers.google.cloud.hooks.cloud_build.CloudBuildHook.get_conn" )
@@ -185,7 +185,7 @@ def test_list_builds(self, get_conn):
185
185
},
186
186
retry = None ,
187
187
timeout = None ,
188
- metadata = None ,
188
+ metadata = () ,
189
189
)
190
190
191
191
@patch ("airflow.providers.google.cloud.hooks.cloud_build.CloudBuildHook._get_build_id_from_operation" )
@@ -200,13 +200,13 @@ def test_retry_build_with_wait(self, get_conn, wait_time, mock_get_id_from_opera
200
200
self .hook .retry_build (id_ = BUILD_ID , project_id = PROJECT_ID )
201
201
202
202
get_conn .return_value .retry_build .assert_called_once_with (
203
- request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = None
203
+ request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = ()
204
204
)
205
205
206
206
get_conn .return_value .retry_build .return_value .result .assert_called_once_with ()
207
207
208
208
get_conn .return_value .get_build .assert_called_once_with (
209
- request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = None
209
+ request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = ()
210
210
)
211
211
212
212
@patch ("airflow.providers.google.cloud.hooks.cloud_build.CloudBuildHook._get_build_id_from_operation" )
@@ -218,11 +218,11 @@ def test_retry_build_without_wait(self, get_conn, mock_get_id_from_operation):
218
218
self .hook .retry_build (id_ = BUILD_ID , project_id = PROJECT_ID , wait = False )
219
219
220
220
get_conn .return_value .retry_build .assert_called_once_with (
221
- request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = None
221
+ request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = ()
222
222
)
223
223
224
224
get_conn .return_value .get_build .assert_called_once_with (
225
- request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = None
225
+ request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = ()
226
226
)
227
227
228
228
@patch ("airflow.providers.google.cloud.hooks.cloud_build.CloudBuildHook._get_build_id_from_operation" )
@@ -246,13 +246,13 @@ def test_run_build_trigger_with_wait(self, get_conn, wait_time, mock_get_id_from
246
246
},
247
247
retry = None ,
248
248
timeout = None ,
249
- metadata = None ,
249
+ metadata = () ,
250
250
)
251
251
252
252
get_conn .return_value .run_build_trigger .return_value .result .assert_called_once_with ()
253
253
254
254
get_conn .return_value .get_build .assert_called_once_with (
255
- request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = None
255
+ request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = ()
256
256
)
257
257
258
258
@patch ("airflow.providers.google.cloud.hooks.cloud_build.CloudBuildHook._get_build_id_from_operation" )
@@ -273,11 +273,11 @@ def test_run_build_trigger_without_wait(self, get_conn, mock_get_id_from_operati
273
273
},
274
274
retry = None ,
275
275
timeout = None ,
276
- metadata = None ,
276
+ metadata = () ,
277
277
)
278
278
279
279
get_conn .return_value .get_build .assert_called_once_with (
280
- request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = None
280
+ request = {'project_id' : PROJECT_ID , 'id' : BUILD_ID }, retry = None , timeout = None , metadata = ()
281
281
)
282
282
283
283
@patch ("airflow.providers.google.cloud.hooks.cloud_build.CloudBuildHook.get_conn" )
@@ -288,5 +288,5 @@ def test_update_build_trigger(self, get_conn):
288
288
request = {'project_id' : PROJECT_ID , 'trigger_id' : TRIGGER_ID , 'trigger' : BUILD_TRIGGER },
289
289
retry = None ,
290
290
timeout = None ,
291
- metadata = None ,
291
+ metadata = () ,
292
292
)
0 commit comments