mirror of
https://github.com/home-assistant/core.git
synced 2026-07-03 12:46:09 +01:00
16 lines
292 B
Python
16 lines
292 B
Python
"""Config tests Mikrotik."""
|
|
|
|
from unittest.mock import patch
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def mock_api():
|
|
"""Mock api."""
|
|
with (
|
|
patch("librouteros.create_transport"),
|
|
patch("librouteros.Api.readResponse") as mock_api,
|
|
):
|
|
yield mock_api
|