Skip to content

Commit

Permalink
TST: xfail most test_gbq tests for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback committed Feb 13, 2017
1 parent 010393c commit d9e75c7
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions pandas/tests/io/test_gbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def test_generate_bq_schema_deprecated():
gbq.generate_bq_schema(df)


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

def setUp(self):
Expand Down Expand Up @@ -299,7 +299,7 @@ def test_get_application_default_credentials_returns_credentials(self):
self.assertTrue(isinstance(credentials, GoogleCredentials))


@pytest.mark.single
@pytest.mark.xfail(run=False, reason="flaky tests")
class TestGBQConnectorIntegrationWithServiceAccountKeyPath(tm.TestCase):
def setUp(self):
_setup_common()
Expand Down Expand Up @@ -331,7 +331,7 @@ def test_should_be_able_to_get_results_from_query(self):
self.assertTrue(pages is not None)


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


@pytest.mark.single
class GBQUnitTests(tm.TestCase):

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


@pytest.mark.single
@pytest.mark.xfail(run=False, reason="flaky tests")
class TestReadGBQIntegration(tm.TestCase):

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


@pytest.mark.single
@pytest.mark.xfail(run=False, reason="flaky tests")
class TestReadGBQIntegrationWithServiceAccountKeyPath(tm.TestCase):

@classmethod
Expand Down Expand Up @@ -907,7 +906,7 @@ def test_configuration_without_query(self):
configuration=config)


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

def test_upload_data_if_table_exists_replace(self):

pytest.skip("buggy test")

destination_table = DESTINATION_TABLE + "4"

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


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


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

0 comments on commit d9e75c7

Please sign in to comment.