We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72984ca commit 65c6229Copy full SHA for 65c6229
2 files changed
test-requirements.txt
@@ -1,3 +1,4 @@
1
+mock
2
pytest
-pytest-xdist
3
pytest-cov
4
+pytest-xdist
test_cfn_resource.py
@@ -1,4 +1,6 @@
import json
+import mock
+
import cfn_resource
5
6
@@ -56,7 +58,6 @@ def wrapper(*args):
56
58
57
59
### Tests for the wrapper function
60
-import mock
61
62
@mock.patch('urllib2.urlopen')
63
def test_client_code_failure(urlmock):
@@ -77,6 +78,7 @@ def flaky_function(*args):
77
78
assert reply['StackId'] == base_event['StackId']
79
assert reply['Reason'] == "Exception was raised while handling custom resource"
80
81
82
83
def test_sends_put_request(urlmock):
84
rsrc = cfn_resource.Resource()
0 commit comments