mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-12 18:38:03 +00:00
Add support for pairing devices with hubs (#859)
Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
from datetime import datetime
|
||||
from unittest.mock import ANY, PropertyMock, patch
|
||||
@@ -62,15 +61,6 @@ from .conftest import (
|
||||
pytestmark = [pytest.mark.requires_dummy]
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def runner():
|
||||
"""Runner fixture that unsets the KASA_ environment variables for tests."""
|
||||
KASA_VARS = {k: None for k, v in os.environ.items() if k.startswith("KASA_")}
|
||||
runner = CliRunner(env=KASA_VARS)
|
||||
|
||||
return runner
|
||||
|
||||
|
||||
async def test_help(runner):
|
||||
"""Test that all the lazy modules are correctly names."""
|
||||
res = await runner.invoke(cli, ["--help"])
|
||||
|
Reference in New Issue
Block a user