Skip to content

Commit 6be0ced

Browse files
authored
fix: Fix TestCustomDomains unit tests have side effect on others (#2900)
1 parent 33a397a commit 6be0ced

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/model/api/test_http_api_generator.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ class TestCustomDomains(TestCase):
216216
"passthrough_resource_attributes": None,
217217
"domain": None,
218218
}
219-
route53_record_set_groups = {}
219+
220+
def setUp(self) -> None:
221+
self.route53_record_set_groups = {}
220222

221223
def test_no_domain(self):
222224
self.kwargs["domain"] = None
@@ -371,7 +373,7 @@ def test_basepaths_complex(self):
371373
self.assertIsNotNone(route, None)
372374
self.assertEqual(route.HostedZoneName, None)
373375
self.assertEqual(route.HostedZoneId, "xyz")
374-
self.assertEqual(len(route.RecordSets), 4)
376+
self.assertEqual(len(route.RecordSets), 2)
375377
self.assertEqual(
376378
list(map(lambda base: base.ApiMappingKey, basepath)),
377379
["one-1", "two_2", "three", "", "api", "api/v1", "api/v1", "api/v1"],

0 commit comments

Comments
 (0)