Skip to content

Commit 4a74b6a

Browse files
committed
MCU8MASS-943 Update pytests for MQTT examples
1 parent 3bcd1af commit 4a74b6a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

test/test_examples.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def example_test_data():
249249
],
250250
"mqtt_password_authentication": [
251251
{
252-
"expectation": "\\[INFO\\] Starting initialization of MQTT with username and password"
252+
"expectation": "\\[INFO\\] Starting MQTT with username and password example"
253253
},
254254
{
255255
"expectation": "\\[INFO\\] Connecting to operator.{0,}OK!"
@@ -277,11 +277,14 @@ def example_test_data():
277277
},
278278
{
279279
"expectation": "\\[INFO\\] Got new message: Hello world: (\\d{1,})"
280+
},
281+
{
282+
"expectation": "\\[INFO\\] Closing MQTT connection"
280283
}
281284
],
282285
"mqtt_polling": [
283286
{
284-
"expectation": "\\[INFO\\] Starting initialization of MQTT Polling"
287+
"expectation": "\\[INFO\\] Starting MQTT Polling example"
285288
},
286289
{
287290
"expectation": "\\[INFO\\] Connecting to operator.{0,}OK!"
@@ -306,11 +309,14 @@ def example_test_data():
306309
},
307310
{
308311
"expectation": "\\[INFO\\] Got new message: Hello world: (\\d{1,})"
312+
},
313+
{
314+
"expectation": "\\[INFO\\] Closing MQTT connection"
309315
}
310316
],
311317
"mqtt_polling_aws": [
312318
{
313-
"expectation": "\\[INFO\\] Starting initialization of MQTT Polling for AWS"
319+
"expectation": "\\[INFO\\] Starting MQTT Polling for AWS example"
314320
},
315321
{
316322
"expectation": "\r\n"
@@ -338,6 +344,9 @@ def example_test_data():
338344
},
339345
{
340346
"expectation": "\\[INFO\\] Got new message: \\{\\\"light\\\": 9, \\\"temp\\\": 9\\}"
347+
},
348+
{
349+
"expectation": "\\[INFO\\] Closing MQTT connection"
341350
}
342351
],
343352
"power_down": [

0 commit comments

Comments
 (0)