Skip to content

Commit

Permalink
Address comments on test refactor (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob authored Jun 30, 2022
1 parent 93a2935 commit 044ff8e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/matter_experimental/common.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

from functools import lru_cache
import logging
from functools import cache
import json
import asyncio
from typing import TYPE_CHECKING
Expand All @@ -23,7 +22,6 @@


MOCK_COMPR_FABRIC_ID = 1234
LOGGER = logging.getLogger(__name__)


class MockClient(Client):
Expand All @@ -40,7 +38,7 @@ async def listen(self, driver_ready):
await self.mock_client_disconnect.wait()


@lru_cache(maxsize=None)
@cache
def load_node_fixture(fixture: str) -> str:
"""Load a fixture."""
return (NODE_FIXTURES_ROOT / f"{fixture}.json").read_text()
Expand Down

0 comments on commit 044ff8e

Please sign in to comment.