Skip to content

Commit

Permalink
Test use_fake_state with an initial_state
Browse files Browse the repository at this point in the history
  • Loading branch information
n8henrie committed Feb 9, 2024
1 parent 158a967 commit 04ede80
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_commandlineplugin_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
"on_cmd": "test 42 = 43",
"off_cmd": "test 43 = 43",
"use_fake_state": true
},
{
"name": "Test use_fake_test with an initial_state",
"port": 12351,
"on_cmd": "test 42 = 43",
"off_cmd": "test 43 = 43",
"use_fake_state": true,
"initial_state": "on"
}
]
}
Expand Down
9 changes: 9 additions & 0 deletions tests/test_simplehttpplugin_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@
"method": "GET",
"name": "Test that the state does not change if the command fails",
"use_fake_state": true
},
{
"port": 12350,
"on_cmd": "http://127.0.0.1:8000/get?switch=on",
"off_cmd": "http://127.0.0.1:8000/get?switch=off",
"method": "GET",
"name": "Test fake_state with an initial_state",
"use_fake_state": true,
"initial_state": "on"
}
]
}
Expand Down

0 comments on commit 04ede80

Please sign in to comment.