You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/moto/files/moto-1.3.14-tests.patch

83 lines
2.3 KiB

diff --git a/tests/test_awslambda/test_lambda.py b/tests/test_awslambda/test_lambda.py
index 306deeea..7b8937ab 100644
--- a/tests/test_awslambda/test_lambda.py
+++ b/tests/test_awslambda/test_lambda.py
@@ -22,6 +22,7 @@ from moto import (
settings,
mock_sqs,
)
+from unittest import skip
from nose.tools import assert_raises
from botocore.exceptions import ClientError
@@ -1024,6 +1025,7 @@ def test_create_event_source_mapping():
assert response["State"] == "Enabled"
+@skip("fails in sandbox")
@mock_logs
@mock_lambda
@mock_sqs
@@ -1075,6 +1077,7 @@ def test_invoke_function_from_sqs():
assert False, "Test Failed"
+@skip("fails in sandbox")
@mock_logs
@mock_lambda
@mock_dynamodb2
@@ -1135,6 +1138,7 @@ def test_invoke_function_from_dynamodb():
assert False, "Test Failed"
+@skip("fails in sandbox")
@mock_logs
@mock_lambda
@mock_sqs
diff --git a/tests/test_cloudformation/test_validate.py b/tests/test_cloudformation/test_validate.py
index 4dd4d7e0..3d1608e7 100644
--- a/tests/test_cloudformation/test_validate.py
+++ b/tests/test_cloudformation/test_validate.py
@@ -2,6 +2,7 @@ from collections import OrderedDict
import json
import yaml
import os
+from unittest import skip
import boto3
from nose.tools import raises
import botocore
@@ -46,6 +47,7 @@ dummy_template_json = json.dumps(json_template)
dummy_bad_template_json = json.dumps(json_bad_template)
+@skip("needs network access")
@mock_cloudformation
def test_boto3_json_validate_successful():
cf_conn = boto3.client("cloudformation", region_name="us-east-1")
@@ -87,6 +89,7 @@ yaml_bad_template = """
"""
+@skip("needs network access")
@mock_cloudformation
def test_boto3_yaml_validate_successful():
cf_conn = boto3.client("cloudformation", region_name="us-east-1")
diff --git a/tests/test_core/test_request_mocking.py b/tests/test_core/test_request_mocking.py
index 2c44d52c..38c3a08d 100644
--- a/tests/test_core/test_request_mocking.py
+++ b/tests/test_core/test_request_mocking.py
@@ -1,10 +1,13 @@
import requests
import sure # noqa
+from unittest import skip
+
import boto3
from moto import mock_sqs, settings
+@skip("Needs network access")
@mock_sqs
def test_passthrough_requests():
conn = boto3.client("sqs", region_name="us-west-1")