@@ -756,46 +756,6 @@ def test_client_query_total_rows(client, capsys):
756
756
assert "Got 100 rows." in out
757
757
758
758
759
- def test_manage_job (client ):
760
- # TODO(b/199162556): delete after migrating docs
761
- sql = """
762
- SELECT corpus
763
- FROM `bigquery-public-data.samples.shakespeare`
764
- GROUP BY corpus;
765
- """
766
- location = "us"
767
- job = client .query (sql , location = location )
768
- job_id = job .job_id
769
-
770
- # [START bigquery_cancel_job]
771
- # TODO(developer): Uncomment the lines below and replace with your values.
772
- # from google.cloud import bigquery
773
- # client = bigquery.Client()
774
- # job_id = 'bq-job-123x456-123y123z123c' # replace with your job ID
775
- # location = 'us' # replace with your location
776
-
777
- job = client .cancel_job (job_id , location = location )
778
- # [END bigquery_cancel_job]
779
-
780
- # [START bigquery_get_job]
781
- # TODO(developer): Uncomment the lines below and replace with your values.
782
- # from google.cloud import bigquery
783
- # client = bigquery.Client()
784
- # job_id = 'bq-job-123x456-123y123z123c' # replace with your job ID
785
- # location = 'us' # replace with your location
786
-
787
- job = client .get_job (job_id , location = location ) # API request
788
-
789
- # Print selected job properties
790
- print ("Details for job {} running in {}:" .format (job_id , location ))
791
- print (
792
- "\t Type: {}\n \t State: {}\n \t Created: {}" .format (
793
- job .job_type , job .state , job .created
794
- )
795
- )
796
- # [END bigquery_get_job]
797
-
798
-
799
759
def test_query_external_gcs_permanent_table (client , to_delete ):
800
760
dataset_id = "query_external_gcs_{}" .format (_millis ())
801
761
project = client .project
0 commit comments