File: _test_default.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 (13 lines) | stat: -rw-r--r-- 344 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
"""Tests for the default endpoint module."""

from collections.abc import Callable
from typing import Any

from asusrouter.tools.readers import read_json_content


def _test_read(read: Callable[[str], dict[str, Any]]):
    """Test read function."""

    # Check if 'read' is the same as 'read_json_content'
    assert read == read_json_content