1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
"""Tests for PyArr."""
import pathlib
from aiopyarr.models.host_configuration import PyArrHostConfiguration
API_TOKEN = "1234567890abcdef1234567890abcdef"
TEST_HOST_CONFIGURATION = PyArrHostConfiguration(
api_token=API_TOKEN, ipaddress="127.0.0.1"
)
LIDARR_API = "v1"
RADARR_API = "v3"
READARR_API = "v1"
SONARR_API = "v3"
def load_fixture(filename) -> str:
"""Load a fixture."""
return (
pathlib.Path(__file__)
.parent.joinpath("fixtures", filename)
.read_text(encoding="utf8")
)
|