Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
rgc99 committed Oct 17, 2023
1 parent 65a7381 commit 3c5adfb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/configs/service_manual_run_queue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,17 @@ irrigation_unlimited:
- {t: '2023-10-04 06:37:06', c: 1, z: 1, s: 1}
- {t: '2023-10-04 06:47:06', c: 1, z: 1, s: 0}
- {t: '2023-10-04 06:47:06', c: 1, z: 0, s: 0}
- name: '4-Manual run all zones'
start: '2023-10-04 06:00'
end: '2023-10-04 07:00'
results:
- {t: '2023-10-04 06:00:01', c: 1, z: 0, s: 1}
- {t: '2023-10-04 06:00:01', c: 1, z: 1, s: 1}
- {t: '2023-10-04 06:10:01', c: 1, z: 1, s: 0}
- {t: '2023-10-04 06:10:01', c: 1, z: 2, s: 1}
- {t: '2023-10-04 06:20:01', c: 1, z: 2, s: 0}
- {t: '2023-10-04 06:20:01', c: 1, z: 3, s: 1}
- {t: '2023-10-04 06:30:01', c: 1, z: 3, s: 0}
- {t: '2023-10-04 06:30:01', c: 1, z: 4, s: 1}
- {t: '2023-10-04 06:40:01', c: 1, z: 4, s: 0}
- {t: '2023-10-04 06:40:01', c: 1, z: 0, s: 0}
10 changes: 10 additions & 0 deletions tests/test_manual_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,4 +406,14 @@ async def test_service_manual_run_queue(
)
await exam.finish_test()

await exam.begin_test(4)
await exam.call(
SERVICE_MANUAL_RUN,
{
"entity_id": "binary_sensor.irrigation_unlimited_c1_m",
"time": "00:10",
},
)
await exam.finish_test()

exam.check_summary()

0 comments on commit 3c5adfb

Please sign in to comment.