From f765fe1fa07930451ffafd2945f49d7493295968 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 19 Feb 2025 23:39:42 +0930 Subject: [PATCH] test(access): History Entry checks for Team model ref: #605 closes #608 --- .../functional/team/test_team_history.py | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 app/access/tests/functional/team/test_team_history.py diff --git a/app/access/tests/functional/team/test_team_history.py b/app/access/tests/functional/team/test_team_history.py new file mode 100644 index 000000000..6828761a4 --- /dev/null +++ b/app/access/tests/functional/team/test_team_history.py @@ -0,0 +1,37 @@ +from django.test import TestCase + +from access.models.team_history import Team, TeamHistory + +from core.tests.abstract.test_functional_history import HistoryEntriesCommon + + + +class History( + HistoryEntriesCommon, + TestCase, +): + + model = Team + + history_model = TeamHistory + + + @classmethod + def setUpTestData(self): + + super().setUpTestData() + + self.field_name = 'team_name' + + self.obj = self.model.objects.create( + organization = self.organization, + # name = self.field_value_original, + team_name = self.field_value_original + ) + + self.obj_delete = self.model.objects.create( + organization = self.organization, + name = self.field_value_delete, + ) + + self.call_the_banners()