Skip to content

Commit 92a7232

Browse files
committed
ci(generative_ai): skip tests for imagegeneration@006 samples
b/452455170
1 parent 0d338a6 commit 92a7232

6 files changed

+12
-6
lines changed

generative_ai/image_generation/edit_image_inpainting_insert_mask_mode_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import backoff
1818

1919
from google.api_core.exceptions import ResourceExhausted
20+
import pytest
2021

2122
import edit_image_inpainting_insert_mask_mode
2223

@@ -27,7 +28,7 @@
2728
_OUTPUT_FILE = os.path.join(_RESOURCES, "woman_at_beach.png")
2829
_PROMPT = "beach"
2930

30-
31+
@pytest.mark.skip("imagegeneration@006 samples pending deprecation")
3132
@backoff.on_exception(backoff.expo, ResourceExhausted, max_time=60)
3233
def test_edit_image_inpainting_insert_mask_mode() -> None:
3334
response = (

generative_ai/image_generation/edit_image_inpainting_insert_mask_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import backoff
1717

1818
from google.api_core.exceptions import ResourceExhausted
19+
import pytest
1920

2021
import edit_image_inpainting_insert_mask
2122

@@ -26,7 +27,7 @@
2627
_OUTPUT_FILE = os.path.join(_RESOURCES, "woman_with_hat.png")
2728
_PROMPT = "hat"
2829

29-
30+
@pytest.mark.skip("imagegeneration@006 samples pending deprecation")
3031
@backoff.on_exception(backoff.expo, ResourceExhausted, max_time=60)
3132
def test_edit_image_inpainting_insert_mask() -> None:
3233
response = edit_image_inpainting_insert_mask.edit_image_inpainting_insert_mask(

generative_ai/image_generation/edit_image_inpainting_remove_mask_mode_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import backoff
1818

1919
from google.api_core.exceptions import ResourceExhausted
20+
import pytest
2021

2122
import edit_image_inpainting_remove_mask_mode
2223

@@ -27,7 +28,7 @@
2728
_OUTPUT_FILE = os.path.join(_RESOURCES, "sports_car.png")
2829
_PROMPT = "sports car"
2930

30-
31+
@pytest.mark.skip("imagegeneration@006 samples pending deprecation")
3132
@backoff.on_exception(backoff.expo, ResourceExhausted, max_time=60)
3233
def test_edit_image_inpainting_remove_mask_mode() -> None:
3334
response = (

generative_ai/image_generation/edit_image_inpainting_remove_mask_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import backoff
1818

1919
from google.api_core.exceptions import ResourceExhausted
20+
import pytest
2021

2122
import edit_image_inpainting_remove_mask
2223

@@ -27,7 +28,7 @@
2728
_OUTPUT_FILE = os.path.join(_RESOURCES, "volleyball_game_single_blue_player.png")
2829
_PROMPT = "volleyball game"
2930

30-
31+
@pytest.mark.skip("imagegeneration@006 samples pending deprecation")
3132
@backoff.on_exception(backoff.expo, ResourceExhausted, max_time=60)
3233
def test_edit_image_inpainting_remove_mask() -> None:
3334
response = edit_image_inpainting_remove_mask.edit_image_inpainting_remove_mask(

generative_ai/image_generation/edit_image_outpainting_mask_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import backoff
1818

1919
from google.api_core.exceptions import ResourceExhausted
20+
import pytest
2021

2122
import edit_image_outpainting_mask
2223

@@ -27,7 +28,7 @@
2728
_OUTPUT_FILE = os.path.join(_RESOURCES, "roller_skaters_downtown.png")
2829
_PROMPT = "city with skyscrapers"
2930

30-
31+
@pytest.mark.skip("imagegeneration@006 samples pending deprecation")
3132
@backoff.on_exception(backoff.expo, ResourceExhausted, max_time=60)
3233
def test_edit_image_outpainting_mask() -> None:
3334
response = edit_image_outpainting_mask.edit_image_outpainting_mask(

generative_ai/image_generation/edit_image_product_image_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import backoff
1818

1919
from google.api_core.exceptions import ResourceExhausted
20+
import pytest
2021

2122
import edit_image_product_image
2223

@@ -26,7 +27,7 @@
2627
_OUTPUT_FILE = os.path.join(_RESOURCES, "pillow_on_beach.png")
2728
_PROMPT = "beach"
2829

29-
30+
@pytest.mark.skip("imagegeneration@006 samples pending deprecation")
3031
@backoff.on_exception(backoff.expo, ResourceExhausted, max_time=60)
3132
def test_edit_image_product_image() -> None:
3233
response = edit_image_product_image.edit_image_product_image(

0 commit comments

Comments
 (0)