Skip to content

Commit dda3c42

Browse files
committed
TST: make test_gbq single cpu
1 parent a0f7fc0 commit dda3c42

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pandas/tests/io/test_gbq.py

+9
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ def test_generate_bq_schema_deprecated():
253253
gbq.generate_bq_schema(df)
254254

255255

256+
@pytest.mark.single
256257
class TestGBQConnectorIntegrationWithLocalUserAccountAuth(tm.TestCase):
257258

258259
def setUp(self):
@@ -298,6 +299,7 @@ def test_get_application_default_credentials_returns_credentials(self):
298299
self.assertTrue(isinstance(credentials, GoogleCredentials))
299300

300301

302+
@pytest.mark.single
301303
class TestGBQConnectorIntegrationWithServiceAccountKeyPath(tm.TestCase):
302304
def setUp(self):
303305
_setup_common()
@@ -329,6 +331,7 @@ def test_should_be_able_to_get_results_from_query(self):
329331
self.assertTrue(pages is not None)
330332

331333

334+
@pytest.mark.single
332335
class TestGBQConnectorIntegrationWithServiceAccountKeyContents(tm.TestCase):
333336
def setUp(self):
334337
_setup_common()
@@ -360,6 +363,7 @@ def test_should_be_able_to_get_results_from_query(self):
360363
self.assertTrue(pages is not None)
361364

362365

366+
@pytest.mark.single
363367
class GBQUnitTests(tm.TestCase):
364368

365369
def setUp(self):
@@ -446,6 +450,7 @@ def test_read_gbq_with_corrupted_private_key_json_should_fail(self):
446450
private_key=re.sub('[a-z]', '9', _get_private_key_contents()))
447451

448452

453+
@pytest.mark.single
449454
class TestReadGBQIntegration(tm.TestCase):
450455

451456
@classmethod
@@ -499,6 +504,7 @@ def test_should_read_as_service_account_with_key_contents(self):
499504
tm.assert_frame_equal(df, DataFrame({'valid_string': ['PI']}))
500505

501506

507+
@pytest.mark.single
502508
class TestReadGBQIntegrationWithServiceAccountKeyPath(tm.TestCase):
503509

504510
@classmethod
@@ -901,6 +907,7 @@ def test_configuration_without_query(self):
901907
configuration=config)
902908

903909

910+
@pytest.mark.single
904911
class TestToGBQIntegrationWithServiceAccountKeyPath(tm.TestCase):
905912
# Changes to BigQuery table schema may take up to 2 minutes as of May 2015
906913
# As a workaround to this issue, each test should use a unique table name.
@@ -1215,6 +1222,7 @@ def test_dataset_does_not_exist(self):
12151222
DATASET_ID + "_not_found"), 'Expected dataset not to exist')
12161223

12171224

1225+
@pytest.mark.single
12181226
class TestToGBQIntegrationWithLocalUserAccountAuth(tm.TestCase):
12191227
# Changes to BigQuery table schema may take up to 2 minutes as of May 2015
12201228
# As a workaround to this issue, each test should use a unique table name.
@@ -1272,6 +1280,7 @@ def test_upload_data(self):
12721280
self.assertEqual(result['num_rows'][0], test_size)
12731281

12741282

1283+
@pytest.mark.single
12751284
class TestToGBQIntegrationWithServiceAccountKeyContents(tm.TestCase):
12761285
# Changes to BigQuery table schema may take up to 2 minutes as of May 2015
12771286
# As a workaround to this issue, each test should use a unique table name.

0 commit comments

Comments
 (0)