Skip to content

Commit

Permalink
RoleAccessProxy now supports == tests (#2114)
Browse files Browse the repository at this point in the history
  • Loading branch information
jace authored Aug 20, 2024
1 parent ea46856 commit f24bcf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def then_user_gets_notification(
)
notification_recipient = models.NotificationFor(preview, getuser(recipient))
view = notification_recipient.views.render
assert view.actor.uuid == getuser(actor).uuid
assert view.actor == getuser(actor)
assert ridcully_admin.granted_by is not None
assert (
view.activity_template().format(
Expand Down Expand Up @@ -227,7 +227,7 @@ def then_notification_recipient_removal(
)
notification_recipient = models.NotificationFor(preview, getuser(recipient))
view = notification_recipient.views.render
assert view.actor.uuid == getuser(actor).uuid
assert view.actor == getuser(actor)
assert ridcully_admin.granted_by is not None
assert (
view.activity_template().format(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def then_user_gets_notification(
)
notification_recipient = models.NotificationFor(preview, getuser(recipient))
view = notification_recipient.views.render
assert view.actor.uuid == getuser(actor).uuid
assert view.actor == getuser(actor)
assert ridcully_member.granted_by is not None
assert (
view.activity_template().format(
Expand Down Expand Up @@ -335,7 +335,7 @@ def then_notification_recipient_removal(
)
notification_recipient = models.NotificationFor(preview, getuser(recipient))
view = notification_recipient.views.render
assert view.actor.uuid == getuser(actor).uuid
assert view.actor == getuser(actor)
assert ridcully_member.revoked_by is not None
assert (
view.activity_template().format(
Expand Down

0 comments on commit f24bcf9

Please sign in to comment.