| 1 |
# Copyright 2023 Simone Chemelli and contributors |
| 2 |
# SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
"""Base tests for aiocomelit.""" |
| 5 |
|
| 6 |
from aiocomelit.api import ( |
| 7 |
ComelitDeviceObject, |
| 8 |
ComelitVedoAreaObject, |
| 9 |
ComelitVedoZoneObject, |
| 10 |
) |
| 11 |
from aiocomelit.exceptions import ( |
| 12 |
CannotAuthenticate, |
| 13 |
CannotConnect, |
| 14 |
CannotRetrieveData, |
| 15 |
ComelitError, |
| 16 |
DeviceStorageFailureError, |
| 17 |
) |
| 18 |
|
| 19 |
|
| 20 |
def test_objects_can_be_imported() -> None: |
| 21 |
"""Verify objects exist.""" |
| 22 |
assert type(ComelitDeviceObject) |
| 23 |
assert type(ComelitVedoAreaObject) |
| 24 |
assert type(ComelitVedoZoneObject) |
| 25 |
assert type(ComelitError) |
| 26 |
assert type(CannotConnect) |
| 27 |
assert type(CannotAuthenticate) |
| 28 |
assert type(CannotRetrieveData) |
| 29 |
assert type(DeviceStorageFailureError) |