Skip to content

Commit

Permalink
refactor: use init method instead setUp
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV committed Nov 15, 2024
1 parent de6e720 commit 6d62202
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eox_core/tests/integration/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@ class BaseIntegrationTest(TestCase):
Base class for the integration test suite.
"""

def setUp(self):
def __init__(self, *args, **kwargs):
"""
Set up the test suite.
Initialize the class attributes.
"""
super().__init__(*args, **kwargs)
self.default_site = self.get_tenant_data()
self.tenant_x = self.get_tenant_data("tenant-x")
self.tenant_y = self.get_tenant_data("tenant-y")
Expand Down

0 comments on commit 6d62202

Please sign in to comment.