fix bug sms
This commit is contained in:
1 parent
963fd839dc
commit
1d3cff0b63
3 files changed
+9
-5
No files matched your search
@@ -275,7 +275,7 @@ def test_global_supervisor_sms_template_is_seeded_and_editable():
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_staff_created_ticket_also_notifies_owning_unit_supervisors(category, customer):
|
||||
def test_staff_created_ticket_notifies_customer_but_not_unit_supervisors(category, customer):
|
||||
category.unit.supervisor_mobile_1 = "09124445566"
|
||||
category.unit.save()
|
||||
staff = make_staff("a")
|
||||
@@ -289,8 +289,12 @@ def test_staff_created_ticket_also_notifies_owning_unit_supervisors(category, cu
|
||||
body="متن",
|
||||
)
|
||||
|
||||
job = NotificationJob.objects.get(ticket=ticket, event_type="UNIT_SUPERVISOR_NEW_TICKET")
|
||||
assert job.payload == {"recipient_mobile": "+989124445566"}
|
||||
assert NotificationJob.objects.filter(
|
||||
ticket=ticket,
|
||||
event_type="UNIT_SUPERVISOR_NEW_TICKET",
|
||||
).count() == 0
|
||||
customer_job = NotificationJob.objects.get(ticket=ticket, event_type="STAFF_TICKET_CREATED")
|
||||
assert customer_job.customer == customer
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_customer_bale_replies_are_debounced_by_database_policy(category,customer):
|
||||
|
||||
Reference in new issue
Block a user