Skip to content

Commit

Permalink
Reapply "Capitalize App name in permission labels"
Browse files Browse the repository at this point in the history
This reverts commit 06133a8.
  • Loading branch information
atodorov committed Jun 20, 2024
1 parent 663fb19 commit 214a763
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions tenant_groups/tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ def test_new_group_shows_only_filtered_permissions(self):
response = self.client.get(reverse("admin:tenant_groups_group_add"))

for permission in (
"attachments | attachment | Can change attachment",
"bugs | bug | Can add bug",
"django_comments | comment | Can delete comment",
"linkreference | link reference | Can view link reference",
"management | product | Can view product",
"testcases | category | Can add category",
"testplans | test plan | Can delete test plan",
"testruns | test execution | Can delete test execution",
"Attachments | attachment | Can change attachment",
"Bugs | bug | Can add bug",
"Django_Comments | comment | Can delete comment",
"Linkreference | link reference | Can view link reference",
"Management | product | Can view product",
"Testcases | category | Can add category",
"Testplans | test plan | Can delete test plan",
"Testruns | test execution | Can delete test execution",
):
self.assertContains(response, permission)

Expand All @@ -176,14 +176,14 @@ def test_change_group_shows_only_filtered_permissions(self):
)

for permission in (
"attachments | attachment | Can change attachment",
"bugs | bug | Can add bug",
"django_comments | comment | Can delete comment",
"linkreference | link reference | Can view link reference",
"management | product | Can view product",
"testcases | category | Can add category",
"testplans | test plan | Can delete test plan",
"testruns | test execution | Can delete test execution",
"Attachments | attachment | Can change attachment",
"Bugs | bug | Can add bug",
"Django_Comments | comment | Can delete comment",
"Linkreference | link reference | Can view link reference",
"Management | product | Can view product",
"Testcases | category | Can add category",
"Testplans | test plan | Can delete test plan",
"Testruns | test execution | Can delete test execution",
):
self.assertContains(response, permission)

Expand Down

0 comments on commit 214a763

Please sign in to comment.