Skip to content

Commit

Permalink
add text
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrindt committed Dec 12, 2024
1 parent 197c763 commit 815fba1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/core/test_event_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,20 @@ def test_show_disposition_button(django_app, volunteer, planner, event):
user=planner,
).follow()
)


def test_edit_permissions(django_app, volunteer, manager, groups, event):
assert (
"Add another shift"
not in django_app.get(
reverse("core:event_detail", kwargs=dict(pk=event.pk, slug="nottheactualslug")),
user=volunteer,
).follow()
)
assert (
"Add another shift"
in django_app.get(
reverse("core:event_detail", kwargs=dict(pk=event.pk, slug="nottheactualslug")),
user=manager,
).follow()
)

0 comments on commit 815fba1

Please sign in to comment.