@@ -253,7 +253,7 @@ def test_generate_bq_schema_deprecated():
253
253
gbq .generate_bq_schema (df )
254
254
255
255
256
- @pytest .mark .single
256
+ @pytest .mark .xfail ( run = False , reason = "flaky tests" )
257
257
class TestGBQConnectorIntegrationWithLocalUserAccountAuth (tm .TestCase ):
258
258
259
259
def setUp (self ):
@@ -299,7 +299,7 @@ def test_get_application_default_credentials_returns_credentials(self):
299
299
self .assertTrue (isinstance (credentials , GoogleCredentials ))
300
300
301
301
302
- @pytest .mark .single
302
+ @pytest .mark .xfail ( run = False , reason = "flaky tests" )
303
303
class TestGBQConnectorIntegrationWithServiceAccountKeyPath (tm .TestCase ):
304
304
def setUp (self ):
305
305
_setup_common ()
@@ -331,7 +331,7 @@ def test_should_be_able_to_get_results_from_query(self):
331
331
self .assertTrue (pages is not None )
332
332
333
333
334
- @pytest .mark .single
334
+ @pytest .mark .xfail ( run = False , reason = "flaky tests" )
335
335
class TestGBQConnectorIntegrationWithServiceAccountKeyContents (tm .TestCase ):
336
336
def setUp (self ):
337
337
_setup_common ()
@@ -363,7 +363,6 @@ def test_should_be_able_to_get_results_from_query(self):
363
363
self .assertTrue (pages is not None )
364
364
365
365
366
- @pytest .mark .single
367
366
class GBQUnitTests (tm .TestCase ):
368
367
369
368
def setUp (self ):
@@ -450,7 +449,7 @@ def test_read_gbq_with_corrupted_private_key_json_should_fail(self):
450
449
private_key = re .sub ('[a-z]' , '9' , _get_private_key_contents ()))
451
450
452
451
453
- @pytest .mark .single
452
+ @pytest .mark .xfail ( run = False , reason = "flaky tests" )
454
453
class TestReadGBQIntegration (tm .TestCase ):
455
454
456
455
@classmethod
@@ -504,7 +503,7 @@ def test_should_read_as_service_account_with_key_contents(self):
504
503
tm .assert_frame_equal (df , DataFrame ({'valid_string' : ['PI' ]}))
505
504
506
505
507
- @pytest .mark .single
506
+ @pytest .mark .xfail ( run = False , reason = "flaky tests" )
508
507
class TestReadGBQIntegrationWithServiceAccountKeyPath (tm .TestCase ):
509
508
510
509
@classmethod
@@ -907,7 +906,7 @@ def test_configuration_without_query(self):
907
906
configuration = config )
908
907
909
908
910
- @pytest .mark .single
909
+ @pytest .mark .xfail ( run = False , reason = "flaky tests" )
911
910
class TestToGBQIntegrationWithServiceAccountKeyPath (tm .TestCase ):
912
911
# Changes to BigQuery table schema may take up to 2 minutes as of May 2015
913
912
# 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):
1022
1021
1023
1022
def test_upload_data_if_table_exists_replace (self ):
1024
1023
1025
- pytest .skip ("buggy test" )
1026
-
1027
1024
destination_table = DESTINATION_TABLE + "4"
1028
1025
1029
1026
test_size = 10
@@ -1222,7 +1219,7 @@ def test_dataset_does_not_exist(self):
1222
1219
DATASET_ID + "_not_found" ), 'Expected dataset not to exist' )
1223
1220
1224
1221
1225
- @pytest .mark .single
1222
+ @pytest .mark .xfail ( run = False , reason = "flaky tests" )
1226
1223
class TestToGBQIntegrationWithLocalUserAccountAuth (tm .TestCase ):
1227
1224
# Changes to BigQuery table schema may take up to 2 minutes as of May 2015
1228
1225
# As a workaround to this issue, each test should use a unique table name.
@@ -1280,7 +1277,7 @@ def test_upload_data(self):
1280
1277
self .assertEqual (result ['num_rows' ][0 ], test_size )
1281
1278
1282
1279
1283
- @pytest .mark .single
1280
+ @pytest .mark .xfail ( run = False , reason = "flaky tests" )
1284
1281
class TestToGBQIntegrationWithServiceAccountKeyContents (tm .TestCase ):
1285
1282
# Changes to BigQuery table schema may take up to 2 minutes as of May 2015
1286
1283
# As a workaround to this issue, each test should use a unique table name.
0 commit comments