File: conftest.py

package info (click to toggle)
python-aiorecollect 2023.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 436 kB
  • sloc: python: 281; sh: 41; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 442 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Define dynamic test fixtures."""
import json
from typing import Any, cast

import pytest

from .common import load_fixture


@pytest.fixture(name="pickup_data_response_1")
def pickup_data_response_1_fixture() -> dict[str, Any]:
    """Define a fixture to return a standard pickup data response.

    Returns:
        An API payload response.
    """
    return cast(dict[str, Any], json.loads(load_fixture("pickup_data_response_1.json")))