fix button force anoncecall

This commit is contained in:
javad committed 2026-09-28 21:13:19 +03:30
1 parent 9af91941d9
commit 4525ec3e6a
9 files changed
+99 -48

No files matched your search

+4 -1
View File
@@ -1,4 +1,5 @@
import base64
from unittest.mock import Mock, patch
import pytest
from django.contrib.auth.models import Permission
@@ -41,7 +42,9 @@ def test_staff_can_request_immediate_announcement_from_ticket_sidebar(live_serve
AuthenticationPage(page, live_server.url).login_staff(staff, PASSWORD)
conversation = TicketConversationPage(page, live_server.url)
conversation.goto(reverse("staff_tickets:detail", args=[ticket.public_id]))
conversation.request_immediate_announcement()
with patch("apps.integrations.announcements.requests.post", return_value=Mock(content=b"")) as post:
conversation.request_immediate_announcement()
post.assert_called_once()
def test_staff_operations_pages_are_authorized_and_visually_styled(live_server, browser_page):