tests/test_api_accounts_campaigns_testsend_unsubscribe.py:31:def user_id_of(client) -> int: tests/test_api_accounts_campaigns_testsend_unsubscribe.py-32- r = client.get("/auth/me") tests/test_api_accounts_campaigns_testsend_unsubscribe.py-33- assert r.status_code == 200 tests/test_api_accounts_campaigns_testsend_unsubscribe.py-34- return r.json()["id"] tests/test_api_accounts_campaigns_testsend_unsubscribe.py-35- tests/test_api_accounts_campaigns_testsend_unsubscribe.py-36- tests/test_api_accounts_campaigns_testsend_unsubscribe.py-37-def celery_available() -> bool: tests/test_api_accounts_campaigns_testsend_unsubscribe.py-38- """True when a real Redis broker is reachable (campaign start enqueues jobs).""" tests/test_api_accounts_campaigns_testsend_unsubscribe.py-39- try: tests/test_api_accounts_campaigns_testsend_unsubscribe.py-40- import redis as _r tests/test_api_accounts_campaigns_testsend_unsubscribe.py-41- from app.core.config import settings -- tests/test_api_attachments_phones_suppression_settings_logs.py:23:def user_id_of(client) -> int: tests/test_api_attachments_phones_suppression_settings_logs.py-24- return client.get("/auth/me").json()["id"] tests/test_api_attachments_phones_suppression_settings_logs.py-25- tests/test_api_attachments_phones_suppression_settings_logs.py-26- tests/test_api_attachments_phones_suppression_settings_logs.py-27-def _tpl(client, body="

Invoice %FirstName% %RandomTotal%

", name="Pdf Tpl"): tests/test_api_attachments_phones_suppression_settings_logs.py-28- r = client.post("/templates", headers=H(client), tests/test_api_attachments_phones_suppression_settings_logs.py-29- json={"name": name, "body_html": body, "subject": "s"}) tests/test_api_attachments_phones_suppression_settings_logs.py-30- assert r.status_code in (200, 201), r.text tests/test_api_attachments_phones_suppression_settings_logs.py-31- j = r.json() tests/test_api_attachments_phones_suppression_settings_logs.py-32- return j["id"] if "id" in j else j["template"]["id"] tests/test_api_attachments_phones_suppression_settings_logs.py-33- -- tests/test_sse_dashboard.py:44:def user_id_of(client) -> int: tests/test_sse_dashboard.py-45- r = client.get("/auth/me") tests/test_sse_dashboard.py-46- assert r.status_code == 200 tests/test_sse_dashboard.py-47- return r.json()["id"] tests/test_sse_dashboard.py-48- tests/test_sse_dashboard.py-49- tests/test_sse_dashboard.py-50-def celery_available() -> bool: tests/test_sse_dashboard.py-51- """True when a real Redis broker is reachable (campaign start enqueues jobs tests/test_sse_dashboard.py-52- and the SSE generator's pub/sub subscription has a live server).""" tests/test_sse_dashboard.py-53- try: tests/test_sse_dashboard.py-54- import redis as _r