We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb49861 commit c2c9a52Copy full SHA for c2c9a52
1 file changed
iot/api-client/end_to_end_example/cloudiot_pubsub_example_server_test.py
@@ -30,7 +30,7 @@
30
31
def test_config_turn_on(capsys):
32
max_temp = 11
33
- data = {'temperature': max_temp}
+ data = {b'temperature': max_temp}
34
35
Server = example_server.Server(service_account_json)
36
Server._update_device_config(
@@ -48,7 +48,7 @@ def test_config_turn_on(capsys):
48
49
def test_config_turn_off(capsys):
50
min_temp = -1
51
- data = {'temperature': min_temp}
+ data = {b'temperature': min_temp}
52
53
54
@@ -60,3 +60,5 @@ def test_config_turn_off(capsys):
60
61
stdout, _ = capsys.readouterr()
62
assert 'off' in stdout
63
+ assert '-1' in stdout
64
+ assert 'test-device-{}' in stdout
0 commit comments