fix(test_goal): Generate fresh data for each test
This commit is contained in:
parent
69df3edba3
commit
842a4b03a5
1 changed files with 4 additions and 3 deletions
|
|
@ -9,11 +9,12 @@ from frappe.tests.utils import FrappeTestCase
|
|||
|
||||
|
||||
class TestGoal(FrappeTestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
def setUp(self):
|
||||
make_test_objects("Event", reset=True)
|
||||
|
||||
def tearDown(self):
|
||||
frappe.db.delete("Event")
|
||||
|
||||
def test_get_monthly_results(self):
|
||||
"""Test monthly aggregation values of a field"""
|
||||
result_dict = get_monthly_results(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue