Skip to content

Commit

Permalink
test(access): History Entry checks for Team model
Browse files Browse the repository at this point in the history
ref: #605 closes #608
  • Loading branch information
jon-nfc committed Feb 19, 2025
1 parent 1561b3a commit f765fe1
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions app/access/tests/functional/team/test_team_history.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit f765fe1

Please sign in to comment.