• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / fx-private-relay / b2e067fe-ce4e-4099-9bef-07b368e99782

15 Apr 2024 04:18PM CUT coverage: 75.544% (+0.002%) from 75.542%
b2e067fe-ce4e-4099-9bef-07b368e99782

push

circleci

jwhitlock
Enable pyupgrade, fix issues

2443 of 3405 branches covered (71.75%)

Branch coverage included in aggregate %.

56 of 59 new or added lines in 14 files covered. (94.92%)

234 existing lines in 24 files now uncovered.

6793 of 8821 relevant lines covered (77.01%)

20.04 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

38.46
/phones/iq_utils.py
1
import json
1✔
2

3
from django.conf import settings
1✔
4

5
import requests
1✔
6
from rest_framework import exceptions
1✔
7

8

9
def send_iq_sms(to_num: str, from_num: str, text: str) -> None:
1✔
UNCOV
10
    iq_formatted_to_num = to_num.replace("+", "")
×
11
    iq_formatted_from_num = from_num.replace("+", "")
×
12
    json_body = {
×
13
        "from": iq_formatted_from_num,
14
        "to": [iq_formatted_to_num],
15
        "text": text,
16
    }
UNCOV
17
    resp = requests.post(
×
18
        settings.IQ_PUBLISH_MESSAGE_URL,
19
        headers={"Authorization": f"Bearer {settings.IQ_OUTBOUND_API_KEY}"},
20
        json=json_body,
21
    )
UNCOV
22
    if resp.status_code < 200 or resp.status_code > 299:
×
23
        raise exceptions.ValidationError(json.loads(resp.content.decode()))
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc