Skip to content

Commit d9e75c7

Browse files
committed
TST: xfail most test_gbq tests for now
1 parent 010393c commit d9e75c7

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

pandas/tests/io/test_gbq.py

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

255255

256-
@pytest.mark.single
256+
@pytest.mark.xfail(run=False, reason="flaky tests")
257257
class TestGBQConnectorIntegrationWithLocalUserAccountAuth(tm.TestCase):
258258

259259
def setUp(self):
@@ -299,7 +299,7 @@ def test_get_application_default_credentials_returns_credentials(self):
299299
self.assertTrue(isinstance(credentials, GoogleCredentials))
300300

301301

302-
@pytest.mark.single
302+
@pytest.mark.xfail(run=False, reason="flaky tests")
303303
class TestGBQConnectorIntegrationWithServiceAccountKeyPath(tm.TestCase):
304304
def setUp(self):
305305
_setup_common()
@@ -331,7 +331,7 @@ def test_should_be_able_to_get_results_from_query(self):
331331
self.assertTrue(pages is not None)
332332

333333

334-
@pytest.mark.single
334+
@pytest.mark.xfail(run=False, reason="flaky tests")
335335
class TestGBQConnectorIntegrationWithServiceAccountKeyContents(tm.TestCase):
336336
def setUp(self):
337337
_setup_common()
@@ -363,7 +363,6 @@ def test_should_be_able_to_get_results_from_query(self):
363363
self.assertTrue(pages is not None)
364364

365365

366-
@pytest.mark.single
367366
class GBQUnitTests(tm.TestCase):
368367

369368
def setUp(self):
@@ -450,7 +449,7 @@ def test_read_gbq_with_corrupted_private_key_json_should_fail(self):
450449
private_key=re.sub('[a-z]', '9', _get_private_key_contents()))
451450

452451

453-
@pytest.mark.single
452+
@pytest.mark.xfail(run=False, reason="flaky tests")
454453
class TestReadGBQIntegration(tm.TestCase):
455454

456455
@classmethod
@@ -504,7 +503,7 @@ def test_should_read_as_service_account_with_key_contents(self):
504503
tm.assert_frame_equal(df, DataFrame({'valid_string': ['PI']}))
505504

506505

507-
@pytest.mark.single
506+
@pytest.mark.xfail(run=False, reason="flaky tests")
508507
class TestReadGBQIntegrationWithServiceAccountKeyPath(tm.TestCase):
509508

510509
@classmethod
@@ -907,7 +906,7 @@ def test_configuration_without_query(self):
907906
configuration=config)
908907

909908

910-
@pytest.mark.single
909+
@pytest.mark.xfail(run=False, reason="flaky tests")
911910
class TestToGBQIntegrationWithServiceAccountKeyPath(tm.TestCase):
912911
# Changes to BigQuery table schema may take up to 2 minutes as of May 2015
913912
# As a workaround to this issue, each test should use a unique table name.
@@ -1022,8 +1021,6 @@ def test_upload_data_if_table_exists_append(self):
10221021

10231022
def test_upload_data_if_table_exists_replace(self):
10241023

1025-
pytest.skip("buggy test")
1026-
10271024
destination_table = DESTINATION_TABLE + "4"
10281025

10291026
test_size = 10
@@ -1222,7 +1219,7 @@ def test_dataset_does_not_exist(self):
12221219
DATASET_ID + "_not_found"), 'Expected dataset not to exist')
12231220

12241221

1225-
@pytest.mark.single
1222+
@pytest.mark.xfail(run=False, reason="flaky tests")
12261223
class TestToGBQIntegrationWithLocalUserAccountAuth(tm.TestCase):
12271224
# Changes to BigQuery table schema may take up to 2 minutes as of May 2015
12281225
# As a workaround to this issue, each test should use a unique table name.
@@ -1280,7 +1277,7 @@ def test_upload_data(self):
12801277
self.assertEqual(result['num_rows'][0], test_size)
12811278

12821279

1283-
@pytest.mark.single
1280+
@pytest.mark.xfail(run=False, reason="flaky tests")
12841281
class TestToGBQIntegrationWithServiceAccountKeyContents(tm.TestCase):
12851282
# Changes to BigQuery table schema may take up to 2 minutes as of May 2015
12861283
# As a workaround to this issue, each test should use a unique table name.

0 commit comments

Comments
 (0)