Fix existing tests which use list_stacks

The tests are expecting that deleted stacks are not listed when in
fact they should be.
This commit is contained in:
grahamlyons 2018-11-27 11:11:13 +00:00
parent 2d554cd098
commit 4de92accab
No known key found for this signature in database
GPG Key ID: 38679369C7C8D3DD

View File

@ -266,9 +266,9 @@ def test_delete_stack_by_name():
template_body=dummy_template_json,
)
conn.list_stacks().should.have.length_of(1)
conn.describe_stacks().should.have.length_of(1)
conn.delete_stack("test_stack")
conn.list_stacks().should.have.length_of(0)
conn.describe_stacks().should.have.length_of(0)
@mock_cloudformation_deprecated
@ -279,9 +279,9 @@ def test_delete_stack_by_id():
template_body=dummy_template_json,
)
conn.list_stacks().should.have.length_of(1)
conn.describe_stacks().should.have.length_of(1)
conn.delete_stack(stack_id)
conn.list_stacks().should.have.length_of(0)
conn.describe_stacks().should.have.length_of(0)
with assert_raises(BotoServerError):
conn.describe_stacks("test_stack")
@ -296,9 +296,9 @@ def test_delete_stack_with_resource_missing_delete_attr():
template_body=dummy_template_json3,
)
conn.list_stacks().should.have.length_of(1)
conn.describe_stacks().should.have.length_of(1)
conn.delete_stack("test_stack")
conn.list_stacks().should.have.length_of(0)
conn.describe_stacks().should.have.length_of(0)
@mock_cloudformation_deprecated