mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
20 lines
493 B
Python
20 lines
493 B
Python
"""Tests for hassfest."""
|
|
|
|
from pathlib import Path
|
|
|
|
from script.hassfest.model import Config, Integration
|
|
|
|
|
|
def get_integration(domain: str, config: Config):
|
|
"""Helper function for creating hassfest integration model instances."""
|
|
return Integration(
|
|
Path(domain),
|
|
_config=config,
|
|
_manifest={
|
|
"domain": domain,
|
|
"name": domain,
|
|
"documentation": "https://example.com",
|
|
"codeowners": ["@awesome"],
|
|
},
|
|
)
|