Browse Source

working test for turning on kitchen lights

tags/v2.1
btotharye 2 years ago
parent
commit
154efeb953
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      .gitignore
  2. +1
    -1
      test/__init__.py

+ 3
- 0
.gitignore View File

@@ -9,3 +9,6 @@
.idea/preferred-vcs.xml
/.idea/vcs.xml
/venv*
/test/integrationtests*
/settings.json
/skill_developers_testrunner.py

+ 1
- 1
test/__init__.py View File

@@ -10,4 +10,4 @@ def test_runner(skill, example, emitter, loader):
s = [s for s in loader.skills if s and s.root_dir == skill]
s[0].homeassistant = mock.MagicMock()
s[0].homeassistant.ha.execute_service("homeassistant", "turn_on", ha_data)
return SkillTest(skill, example, emitter).run(loader)
return SkillTest(skill, example, emitter).run(loader)

Loading…
Cancel
Save