File: conftest.py

package info (click to toggle)
python-renault-api 0.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,680 kB
  • sloc: python: 7,679; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Test configuration."""

from collections.abc import Generator
from unittest.mock import patch

import pytest


@pytest.fixture(autouse=True)
def mocked_locale() -> Generator[None, None, None]:
    """Fixture for mocking aiohttp responses."""
    with patch(
        "renault_api.cli.renault_client.getlocale", return_value=("fr_CA", None)
    ):
        yield