Skip to content

Commit ec02196

Browse files
authored
testing(bigquery): skip all datalab tests (GoogleCloudPlatform#9467)
* testing(bigquery): skip all datalab tests Datalab has been been effectively frozen for years, and is deprecated. We're no longer investing in fixing these tests, but instead we'll skip them. In Sept 2023, we'll be at the 1yr mark and can remove the tests and accompanyting migration guide. Fixes: GoogleCloudPlatform#9458 Fixes: GoogleCloudPlatform#9457 Fixes: GoogleCloudPlatform#9456 Fixes: GoogleCloudPlatform#9455 * one more skip * lint
1 parent 4921abd commit ec02196

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bigquery/datalab-migration/samples_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def test_datalab_query_magic(ipython_interactive):
8484
assert len(df) == 100
8585

8686

87+
@pytest.mark.skip("datalab is deprecated, remove tests in sept 2023")
8788
def test_client_library_query_magic(ipython_interactive):
8889
import pandas
8990

@@ -106,6 +107,7 @@ def test_client_library_query_magic(ipython_interactive):
106107
assert len(df) == 100
107108

108109

110+
@pytest.mark.skip("datalab is deprecated, remove tests in sept 2023")
109111
def test_datalab_query_magic_results_variable(ipython_interactive):
110112
ip = _set_up_ipython('google.datalab.kernel')
111113

@@ -155,6 +157,7 @@ def test_client_library_query_magic_results_variable(ipython_interactive):
155157
ip.user_ns.pop(variable_name) # clean up variable
156158

157159

160+
@pytest.mark.skip("datalab is deprecated, remove tests in sept 2023")
158161
def test_datalab_list_tables_magic(ipython_interactive):
159162
ip = _set_up_ipython('google.datalab.kernel')
160163

@@ -170,6 +173,7 @@ def test_datalab_list_tables_magic(ipython_interactive):
170173
assert "shakespeare" in html_element.data
171174

172175

176+
@pytest.mark.skip("datalab is deprecated, remove tests in sept 2023")
173177
def test_datalab_query():
174178
# [START bigquery_migration_datalab_query]
175179
import google.datalab.bigquery as bq
@@ -201,6 +205,7 @@ def test_client_library_query():
201205
assert len(df) == 100
202206

203207

208+
@pytest.mark.skip("datalab is deprecated, remove tests in sept 2023")
204209
def test_datalab_load_table_from_gcs_csv(to_delete):
205210
# [START bigquery_migration_datalab_load_table_from_gcs_csv]
206211
import google.datalab.bigquery as bq
@@ -269,6 +274,7 @@ def test_client_library_load_table_from_gcs_csv(to_delete):
269274
assert table.num_rows == 50
270275

271276

277+
@pytest.mark.skip("datalab is deprecated, remove tests in sept 2023")
272278
def test_datalab_load_table_from_dataframe(to_delete):
273279
""" Wrap test with retries to handle transient errors """
274280
@Retry()

0 commit comments

Comments
 (0)