Skip to content

Commit 2f024d4

Browse files
authored
chore: disabling datalabeling tests due to service limited exception (#81)
* chore: disabling datalabeling tests due to service limited exception * lint
1 parent f27bb24 commit 2f024d4

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

datalabeling/snippets/create_annotation_spec_set_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def cleaner():
3737
testing_lib.delete_annotation_spec_set(resource_name)
3838

3939

40+
@pytest.mark.skip(reason="service is limited due to covid")
4041
def test_create_annotation_spec_set(cleaner, capsys):
4142
@backoff.on_exception(
4243
backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE

datalabeling/snippets/create_instruction_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def cleaner():
3939
testing_lib.delete_instruction(resource_name)
4040

4141

42+
@pytest.mark.skip(reason="service is limited due to covid")
4243
def test_create_instruction(cleaner, capsys):
4344
@backoff.on_exception(
4445
backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE

datalabeling/snippets/import_data_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def dataset():
4040
testing_lib.delete_dataset(dataset.name)
4141

4242

43-
@pytest.mark.flaky(max_runs=3, min_passes=1)
43+
@pytest.mark.skip(reason="service is limited due to covid")
4444
def test_import_data(capsys, dataset):
4545
@backoff.on_exception(
4646
backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE

datalabeling/snippets/manage_dataset_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT")
2929

3030

31+
@pytest.mark.skip(reason="service is limited due to covid")
3132
@pytest.fixture(scope="module")
3233
def dataset():
3334
# create a temporary dataset
@@ -57,6 +58,7 @@ def cleaner():
5758
testing_lib.delete_dataset(resource_name)
5859

5960

61+
@pytest.mark.skip(reason="service is limited due to covid")
6062
def test_create_dataset(cleaner, capsys):
6163
@backoff.on_exception(
6264
backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE
@@ -71,6 +73,7 @@ def run_sample():
7173
assert "The dataset resource name:" in out
7274

7375

76+
@pytest.mark.skip(reason="service is limited due to covid")
7477
def test_list_dataset(capsys, dataset):
7578
@backoff.on_exception(
7679
backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE
@@ -83,6 +86,7 @@ def run_sample():
8386
assert dataset.name in out
8487

8588

89+
@pytest.mark.skip(reason="service is limited due to covid")
8690
def test_get_dataset(capsys, dataset):
8791
@backoff.on_exception(
8892
backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE
@@ -95,6 +99,7 @@ def run_sample():
9599
assert "The dataset resource name:" in out
96100

97101

102+
@pytest.mark.skip(reason="service is limited due to covid")
98103
def test_delete_dataset(capsys, dataset):
99104
@backoff.on_exception(
100105
backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE

0 commit comments

Comments
 (0)