File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
iot/api-client/end_to_end_example Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 30
30
31
31
def test_config_turn_on (capsys ):
32
32
max_temp = 11
33
- data = {'temperature' : max_temp }
33
+ data = {b 'temperature' : max_temp }
34
34
35
35
Server = example_server .Server (service_account_json )
36
36
Server ._update_device_config (
@@ -48,7 +48,7 @@ def test_config_turn_on(capsys):
48
48
49
49
def test_config_turn_off (capsys ):
50
50
min_temp = - 1
51
- data = {'temperature' : min_temp }
51
+ data = {b 'temperature' : min_temp }
52
52
53
53
Server = example_server .Server (service_account_json )
54
54
Server ._update_device_config (
@@ -60,3 +60,5 @@ def test_config_turn_off(capsys):
60
60
61
61
stdout , _ = capsys .readouterr ()
62
62
assert 'off' in stdout
63
+ assert '-1' in stdout
64
+ assert 'test-device-{}' in stdout
You can’t perform that action at this time.
0 commit comments