File: const.py

package info (click to toggle)
python-aiowithings 3.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,976 kB
  • sloc: python: 2,471; makefile: 5
file content (13 lines) | stat: -rw-r--r-- 298 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
"""Constants for tests."""

from importlib import metadata

WITHINGS_URL = "https://wbsapi.withings.net:443"

version = metadata.version("aiowithings")

HEADERS = {
    "User-Agent": f"AioWithings/{version}",
    "Accept": "application/json, text/plain, */*",
    "Authorization": "Bearer test",
}