Revert "Enable push notifications for SSR beneficiary for testing purposes" (#2757)
Reverts grafana/oncall#2752
This commit is contained in:
parent
8412282569
commit
bc78fc29e5
2 changed files with 2 additions and 6 deletions
|
|
@ -157,9 +157,7 @@ class ShiftSwapRequest(models.Model):
|
|||
|
||||
@property
|
||||
def possible_benefactors(self) -> QuerySet["User"]:
|
||||
# TODO: exclude the beneficiary from this list
|
||||
# Temporarily including the beneficiary in the list of possible benefactors for testing purposes
|
||||
return self.schedule.related_users()
|
||||
return self.schedule.related_users().exclude(pk=self.beneficiary_id)
|
||||
|
||||
@property
|
||||
def web_link(self) -> str:
|
||||
|
|
|
|||
|
|
@ -166,6 +166,4 @@ def test_possible_benefactors(shift_swap_request_setup) -> None:
|
|||
|
||||
with patch.object(ssr.schedule, "related_users") as mock_related_users:
|
||||
mock_related_users.return_value = User.objects.filter(pk__in=[beneficiary.pk, benefactor.pk])
|
||||
# TODO: exclude the beneficiary from this list
|
||||
# Temporarily including the beneficiary in the list of possible benefactors for testing purposes
|
||||
assert set(ssr.possible_benefactors) == {benefactor, beneficiary}
|
||||
assert list(ssr.possible_benefactors) == [benefactor]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue