Skip to content

Commit

Permalink
assert on both results
Browse files Browse the repository at this point in the history
  • Loading branch information
ksugden committed Jan 24, 2025
1 parent 7fb2ea5 commit 7dbe5ad
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/platform_helper/providers/test_vpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class TestGetVpcBotoIntegration:
@mock_aws
def test_get_vpc_success(self):
client = boto3.client("ec2")
expected_vpc = set_up_test_platform_vpc(
expected_vpc_1 = set_up_test_platform_vpc(
client,
"test-app",
"test-env",
Expand All @@ -67,7 +67,7 @@ def test_get_vpc_success(self):
public_subnet_cidr="10.0.1.0/24",
name="test-vpc",
)
set_up_test_platform_vpc(
expected_vpc_2 = set_up_test_platform_vpc(
client,
"test-app",
"test-env",
Expand All @@ -80,9 +80,11 @@ def test_get_vpc_success(self):
mock_session = Mock()
mock_session.client.return_value = client

result = VpcProvider(mock_session).get_vpc("test-app", "test-env", "test-vpc")
result_1 = VpcProvider(mock_session).get_vpc("test-app", "test-env", "test-vpc")
assert result_1 == expected_vpc_1

assert result == expected_vpc
result_2 = VpcProvider(mock_session).get_vpc("test-app", "test-env", "test-vpc-2")
assert result_2 == expected_vpc_2

@mock_aws
def test_get_vpc_failure_no_matching_vpc_name(self):
Expand Down

0 comments on commit 7dbe5ad

Please sign in to comment.