Skip to content

Commit

Permalink
chore: disabling datalabeling tests due to service limited exception (#…
Browse files Browse the repository at this point in the history
…81)

* chore: disabling datalabeling tests due to service limited exception

* lint
  • Loading branch information
munkhuushmgl authored Mar 23, 2021
1 parent f27bb24 commit 2f024d4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions datalabeling/snippets/create_annotation_spec_set_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def cleaner():
testing_lib.delete_annotation_spec_set(resource_name)


@pytest.mark.skip(reason="service is limited due to covid")
def test_create_annotation_spec_set(cleaner, capsys):
@backoff.on_exception(
backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE
Expand Down
1 change: 1 addition & 0 deletions datalabeling/snippets/create_instruction_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def cleaner():
testing_lib.delete_instruction(resource_name)


@pytest.mark.skip(reason="service is limited due to covid")
def test_create_instruction(cleaner, capsys):
@backoff.on_exception(
backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE
Expand Down
2 changes: 1 addition & 1 deletion datalabeling/snippets/import_data_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def dataset():
testing_lib.delete_dataset(dataset.name)


@pytest.mark.flaky(max_runs=3, min_passes=1)
@pytest.mark.skip(reason="service is limited due to covid")
def test_import_data(capsys, dataset):
@backoff.on_exception(
backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE
Expand Down
5 changes: 5 additions & 0 deletions datalabeling/snippets/manage_dataset_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT")


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


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


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


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


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

0 comments on commit 2f024d4

Please sign in to comment.