Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 29, 2024
1 parent c63b6d5 commit 6f2e9da
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/shop/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,11 +588,14 @@ def setUpTestData(cls):

cls.camp = CampFactory()
infoteam = Team.objects.create(
name="Info", description="Info team", camp=cls.camp
name="Info",
description="Info team",
camp=cls.camp,
)
camp_content_type = ContentType.objects.get_for_model(cls.camp)
permission = Permission.objects.get(
content_type=camp_content_type, codename="info_team_member"
content_type=camp_content_type,
codename="info_team_member",
)
infoteam.group.permissions.add(permission)
TeamMember.objects.create(user=cls.info_user, team=infoteam, approved=True)
Expand Down

0 comments on commit 6f2e9da

Please sign in to comment.