Przeglądaj źródła

fix(test_goal): Generate fresh data for each test

version-14
Gavin D'souza 3 lat temu
rodzic
commit
842a4b03a5
1 zmienionych plików z 4 dodań i 3 usunięć
  1. +4
    -3
      frappe/tests/test_goal.py

+ 4
- 3
frappe/tests/test_goal.py Wyświetl plik

@@ -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(


Ładowanie…
Anuluj
Zapisz