Skip to content

Commit

Permalink
[FIX]: Add tearDownClass function
Browse files Browse the repository at this point in the history
  • Loading branch information
chaule97 committed Nov 7, 2024
1 parent cb06f0a commit a314805
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ def setUpClass(cls):
**cls.quick_ctx
)

@classmethod
def tearDownClass(cls):
cls.loader.restore_registry()
return super().tearDownClass()

def test_quick_line_add(self):
"""Test quick lines are added, updated and removed"""
# Case 1: Create new line
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ def setUpClass(cls):
}
)

@classmethod
def tearDownClass(cls):
cls.loader.restore_registry()
return super().tearDownClass()

def test_implemented_get_order_line_field(self):
self.assertEqual(
self.order_model._get_order_line_field(),
Expand Down

0 comments on commit a314805

Please sign in to comment.