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

unity-sds / unity-py / 9765852317

02 Jul 2024 06:05PM UTC coverage: 52.801% (-34.8%) from 87.575%
9765852317

Pull #90

github

web-flow
Merge d2b62759a into 44488b0de
Pull Request #90: Add health service

32 of 36 new or added lines in 3 files covered. (88.89%)

85 existing lines in 8 files now uncovered.

377 of 714 relevant lines covered (52.8%)

3.17 hits per line

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

87.5
/unity_sds_client/utils/http.py
1
"""
6✔
2
This module contains utility functions to support HTTP calls.
3
"""
4

5
def get_headers(token, additional_headers = None):
6✔
6
    """Returns a dictionary containing headers that will be used in an API call"""
7

8
    if token is None:
6✔
UNCOV
9
        raise Exception("No authorization token was provided.")
×
10

11
    if additional_headers is None:
6✔
12
        additional_headers = {}
6✔
13

14
    base_header = {
6✔
15
        "Authorization": "Bearer " + token,
16
    }
17

18
    return {**base_header, **additional_headers}
6✔
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

© 2026 Coveralls, Inc