Skip to content

Commit

Permalink
test_import_defs
Browse files Browse the repository at this point in the history
  • Loading branch information
kellerza committed Jan 24, 2025
1 parent a4af4ed commit b9d6066
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/tests/ha_addon_sunsynk_multi/test_definitions3ph.py

This file was deleted.

1 change: 1 addition & 0 deletions src/tests/sunsynk/definitions/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Sensor definitions."""
16 changes: 16 additions & 0 deletions src/tests/sunsynk/definitions/test_init.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""Test sensor definitions."""

from sunsynk.definitions import import_defs


def test_import_defs() -> None:
"""Test importing sensors."""
libs = (
"single_phase",
"three_phase_hv",
"three_phase_lv",
)
for lib in libs:
defs = import_defs(lib)
assert len(defs.all) > 50
assert defs.rated_power

0 comments on commit b9d6066

Please sign in to comment.