Skip to content

Commit

Permalink
skip test if in server mode
Browse files Browse the repository at this point in the history
  • Loading branch information
cloutierMat committed Oct 9, 2024
1 parent 93f156a commit 578f48c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_apigateway/test_apigateway_custom_ids.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import boto3
import pytest

from moto import mock_aws
from moto import mock_aws, settings
from moto.apigateway.utils import (
ApigwApiKeyIdentifier,
ApigwDeploymentIdentifier,
Expand All @@ -23,6 +24,7 @@


@mock_aws
@pytest.mark.skipif(not settings.TEST_DECORATOR_MODE, reason="Can't access the id manager in proxy mode")
def test_custom_id_rest_api(set_custom_id, account_id):
region_name = "us-west-2"
rest_api_name = "my-api"
Expand Down Expand Up @@ -106,6 +108,7 @@ def test_custom_id_rest_api(set_custom_id, account_id):


@mock_aws
@pytest.mark.skipif(not settings.TEST_DECORATOR_MODE, reason="Can't access the id manager in proxy mode")
def test_custom_id_api_key(account_id, set_custom_id):
region_name = "us-west-2"
api_key_value = "01234567890123456789"
Expand Down
1 change: 1 addition & 0 deletions tests/test_secretsmanager/test_secretsmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1954,6 +1954,7 @@ def test_update_secret_version_stage_dont_specify_current_stage(secret_arn=None)


@mock_aws
@pytest.mark.skipif(not settings.TEST_DECORATOR_MODE, reason="Can't access the id manager in proxy mode")
def test_create_secret_custom_id(account_id, set_custom_id):
secret_suffix = "randomSuffix"
secret_name = "secret-name"
Expand Down

0 comments on commit 578f48c

Please sign in to comment.