File: test_utils.py

package info (click to toggle)
pyfibaro 0.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 460 kB
  • sloc: python: 1,931; sh: 9; makefile: 3
file content (14 lines) | stat: -rw-r--r-- 332 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Helpers for fibaro tests."""

import json
from typing import Any

TEST_BASE_URL = "http://192.168.1.166/api/"
TEST_USERNAME = "admin"
TEST_PASSWORD = "admin"


def load_fixture(filename: str) -> Any:
    """Load a json file."""
    with open(f"tests/fixture/{filename}", encoding="UTF-8") as file:
        return json.load(file)