mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-05-22 07:38:49 +01:00
05b58d76b9
* Add tests for hass.io * Fix folder * Fix test command
10 lines
237 B
Python
10 lines
237 B
Python
"""Common test functions."""
|
|
import json
|
|
from pathlib import Path
|
|
|
|
|
|
def load_json_fixture(filename):
|
|
"""Load a fixture."""
|
|
path = Path(Path(__file__).parent.joinpath("fixtures"), filename)
|
|
return json.loads(path.read_text())
|