Skip to content

Commit

Permalink
fix: Fix TestCustomDomains unit tests have side effect on others (#2900)
Browse files Browse the repository at this point in the history
  • Loading branch information
aahung committed Feb 13, 2023
1 parent 33a397a commit 6be0ced
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/model/api/test_http_api_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ class TestCustomDomains(TestCase):
"passthrough_resource_attributes": None,
"domain": None,
}
route53_record_set_groups = {}

def setUp(self) -> None:
self.route53_record_set_groups = {}

def test_no_domain(self):
self.kwargs["domain"] = None
Expand Down Expand Up @@ -371,7 +373,7 @@ def test_basepaths_complex(self):
self.assertIsNotNone(route, None)
self.assertEqual(route.HostedZoneName, None)
self.assertEqual(route.HostedZoneId, "xyz")
self.assertEqual(len(route.RecordSets), 4)
self.assertEqual(len(route.RecordSets), 2)
self.assertEqual(
list(map(lambda base: base.ApiMappingKey, basepath)),
["one-1", "two_2", "three", "", "api", "api/v1", "api/v1", "api/v1"],
Expand Down

0 comments on commit 6be0ced

Please sign in to comment.