@@ -122,7 +122,8 @@ def _verifyReadonlyResourceProperties(self, job, resource):
122122class TestLoadTableFromStorageJob (unittest .TestCase , _Base ):
123123 JOB_TYPE = 'load'
124124
125- def _getTargetClass (self ):
125+ @staticmethod
126+ def _get_target_class ():
126127 from google .cloud .bigquery .job import LoadTableFromStorageJob
127128 return LoadTableFromStorageJob
128129
@@ -642,7 +643,8 @@ class TestCopyJob(unittest.TestCase, _Base):
642643 SOURCE_TABLE = 'source_table'
643644 DESTINATION_TABLE = 'destination_table'
644645
645- def _getTargetClass (self ):
646+ @staticmethod
647+ def _get_target_class ():
646648 from google .cloud .bigquery .job import CopyJob
647649 return CopyJob
648650
@@ -939,7 +941,8 @@ class TestExtractTableToStorageJob(unittest.TestCase, _Base):
939941 SOURCE_TABLE = 'source_table'
940942 DESTINATION_URI = 'gs://bucket_name/object_name'
941943
942- def _getTargetClass (self ):
944+ @staticmethod
945+ def _get_target_class ():
943946 from google .cloud .bigquery .job import ExtractTableToStorageJob
944947 return ExtractTableToStorageJob
945948
@@ -1232,7 +1235,8 @@ class TestQueryJob(unittest.TestCase, _Base):
12321235 QUERY = 'select count(*) from persons'
12331236 DESTINATION_TABLE = 'destination_table'
12341237
1235- def _getTargetClass (self ):
1238+ @staticmethod
1239+ def _get_target_class ():
12361240 from google .cloud .bigquery .job import QueryJob
12371241 return QueryJob
12381242
0 commit comments