mirror of
https://github.com/hacs/integration.git
synced 2025-07-22 00:35:16 +00:00
20 lines
509 B
Python
20 lines
509 B
Python
import pytest
|
|
|
|
from custom_components.hacs.exceptions import HacsException
|
|
|
|
|
|
@pytest.mark.asyncio
|
|
async def test_base(repository_appdaemon):
|
|
assert repository_appdaemon.data.category == "appdaemon"
|
|
|
|
|
|
@pytest.mark.asyncio
|
|
async def test_validate_repository(repository_appdaemon):
|
|
with pytest.raises(HacsException):
|
|
await repository_appdaemon.validate_repository()
|
|
|
|
|
|
@pytest.mark.asyncio
|
|
async def test_update_repository(repository_appdaemon):
|
|
await repository_appdaemon.update_repository()
|