File: helpers.py

package info (click to toggle)
python-asusrouter 1.21.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,856 kB
  • sloc: python: 20,497; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 400 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Helpers for unit test modules."""

from __future__ import annotations

from collections.abc import Callable
from unittest.mock import AsyncMock, Mock

from asusrouter.connection import Connection

AsyncPatch = Callable[..., AsyncMock]
SyncPatch = Callable[..., Mock]
ConnectionFactory = Callable[..., Connection]


TCONST_HOST = "localhost"
TCONST_USER = "user"
TCONST_PASS = "pass"  # noqa: S105