Skip to content

Commit

Permalink
refactor test
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri committed Jan 16, 2025
1 parent 71916de commit 3e35810
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions onadata/apps/api/tests/viewsets/test_abstract_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ def setUp(self):
)

def tearDown(self):
TestCase.tearDown(self)

# Enable signals
post_save.connect(
sender=DataDictionary,
dispatch_uid="create_export_repeat_register",
receiver=create_export_repeat_register,
)

TestCase.tearDown(self)

def user_profile_data(self):
"""Returns the user profile python object."""
return {
Expand Down
4 changes: 2 additions & 2 deletions onadata/libs/tests/utils/test_csv_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ def setUp(self):
)

def tearDown(self):
super().tearDown()

# Enable signals
post_save.connect(
sender=DataDictionary,
dispatch_uid="create_export_repeat_register",
receiver=create_export_repeat_register,
)

super().tearDown()

def _publish_xls_fixture_set_xform(self, fixture):
"""
Publish an xls file at tests/fixtures/[fixture]/fixture.xls
Expand Down

0 comments on commit 3e35810

Please sign in to comment.