@@ -2594,8 +2594,6 @@ def test_delete_table_w_not_found_ok_true(self):
2594
2594
conn .api_request .assert_called_with (method = "DELETE" , path = path , timeout = None )
2595
2595
2596
2596
def _create_job_helper (self , job_config ):
2597
- from google .cloud .bigquery import _helpers
2598
-
2599
2597
creds = _make_credentials ()
2600
2598
http = object ()
2601
2599
client = self ._make_one (project = self .PROJECT , credentials = creds , _http = http )
@@ -2606,8 +2604,6 @@ def _create_job_helper(self, job_config):
2606
2604
}
2607
2605
conn = client ._connection = make_connection (RESOURCE )
2608
2606
client .create_job (job_config = job_config )
2609
- if "query" in job_config :
2610
- _helpers ._del_sub_prop (job_config , ["query" , "destinationTable" ])
2611
2607
2612
2608
conn .api_request .assert_called_once_with (
2613
2609
method = "POST" ,
@@ -2732,7 +2728,7 @@ def test_create_job_query_config_w_rateLimitExceeded_error(self):
2732
2728
}
2733
2729
data_without_destination = {
2734
2730
"jobReference" : {"projectId" : self .PROJECT , "jobId" : mock .ANY },
2735
- "configuration" : { "query" : { "query" : query , "useLegacySql" : False }} ,
2731
+ "configuration" : configuration ,
2736
2732
}
2737
2733
2738
2734
creds = _make_credentials ()
0 commit comments