diff --git a/localstack-core/localstack/testing/pytest/fixtures.py b/localstack-core/localstack/testing/pytest/fixtures.py index 5c282ea8fcbc5..77beed14d280c 100644 --- a/localstack-core/localstack/testing/pytest/fixtures.py +++ b/localstack-core/localstack/testing/pytest/fixtures.py @@ -2191,29 +2191,6 @@ def _create_apigateway_function(**kwargs): apigateway_client.delete_rest_api(restApiId=rest_api_id) -@pytest.fixture -def appsync_create_api(aws_client): - graphql_apis = [] - - def factory(**kwargs): - if "name" not in kwargs: - kwargs["name"] = f"graphql-api-testing-name-{short_uid()}" - if not kwargs.get("authenticationType"): - kwargs["authenticationType"] = "API_KEY" - - result = aws_client.appsync.create_graphql_api(**kwargs)["graphqlApi"] - graphql_apis.append(result["apiId"]) - return result - - yield factory - - for api in graphql_apis: - try: - aws_client.appsync.delete_graphql_api(apiId=api) - except Exception as e: - LOG.debug("Error cleaning up AppSync API: %s, %s", api, e) - - @pytest.fixture def assert_host_customisation(monkeypatch): localstack_host = "foo.bar"