Files
hacs_integration/tests/test_emuns.py
Joakim Sørensen fa942f1613 Prepare string Enums for Python 3.11 (#2937)
* Prepare for Python 3.11

* Add test

* Move to constraints and add description

* Use if instead of import
2022-11-26 09:56:50 +00:00

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"