Skip to content

Commit

Permalink
chore: more dummy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EuleMitKeule committed Dec 6, 2024
1 parent 389d958 commit b8e1671
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"files.associations": {
"*.yaml": "home-assistant"
}
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}
14 changes: 14 additions & 0 deletions tests/test_device_tools.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""Tests for the device_tools module."""

from unittest.mock import MagicMock

from custom_components.device_tools.device_tools import DeviceTools


def test_init() -> None:
hass = MagicMock()
logger = MagicMock()

device_tools = DeviceTools(hass, logger)

assert device_tools._hass == hass

0 comments on commit b8e1671

Please sign in to comment.