mirror of
https://github.com/hacs/integration.git
synced 2025-07-23 02:55:44 +00:00

* Prepare for Python 3.11 * Add test * Move to constraints and add description * Use if instead of import
11 lines
292 B
Python
11 lines
292 B
Python
""""Test enums."""
|
|
|
|
from custom_components.hacs.enums import RepositoryFile
|
|
|
|
|
|
def test_enum_value():
|
|
"""Test enum value."""
|
|
assert RepositoryFile.HACS_JSON == "hacs.json"
|
|
assert RepositoryFile.HACS_JSON.value == "hacs.json"
|
|
assert str(RepositoryFile.HACS_JSON) == "hacs.json"
|