@@ -142,6 +142,8 @@ def test_default_job_attributes(setup):
142
142
"timeEnded" : ended_time .isoformat (),
143
143
"hasErrors" : True ,
144
144
"state" : "some_job_state" ,
145
+ "total_bytes_billed" : 42 ,
146
+ "total_bytes_processed" : 13 ,
145
147
}
146
148
with mock .patch ("google.cloud.bigquery.job._AsyncJob" ) as test_job_ref :
147
149
test_job_ref .job_id = "test_job_id"
@@ -154,6 +156,8 @@ def test_default_job_attributes(setup):
154
156
test_job_ref .ended = ended_time
155
157
test_job_ref .error_result = error_result
156
158
test_job_ref .state = "some_job_state"
159
+ test_job_ref .total_bytes_billed = 42
160
+ test_job_ref .total_bytes_processed = 13
157
161
158
162
with opentelemetry_tracing .create_span (
159
163
TEST_SPAN_NAME , attributes = TEST_SPAN_ATTRIBUTES , job_ref = test_job_ref
@@ -180,6 +184,8 @@ def test_optional_job_attributes(setup):
180
184
test_job_ref .state = "some_job_state"
181
185
test_job_ref .num_child_jobs = None
182
186
test_job_ref .parent_job_id = None
187
+ test_job_ref .total_bytes_billed = None
188
+ test_job_ref .total_bytes_processed = None
183
189
184
190
with opentelemetry_tracing .create_span (
185
191
TEST_SPAN_NAME , attributes = TEST_SPAN_ATTRIBUTES , job_ref = test_job_ref
0 commit comments