@@ -87,9 +87,7 @@ def test_output_nodetails(self):
8787 start_found = True
8888 if "progressUpdate" in event_type :
8989 message = event ["body" ]["message" ]
90- # We send an update on first message to set the details, so ignore the first update
91- if not update_found :
92- self .assertTrue (message == "" , message )
90+ self .assertEqual ("Initial Detail" , message )
9391 update_found = True
9492
9593 self .assertTrue (start_found )
@@ -128,7 +126,9 @@ def test_output_indeterminate(self):
128126 if "progressUpdate" in event_type :
129127 message = event ["body" ]["message" ]
130128 print (f"Progress update: { message } " )
131- self .assertNotIn ("Progres tester" , message )
129+ # Check on the first update we set the initial detail.
130+ if not update_found :
131+ self .assertEqual ("Step 1" , message )
132132 update_found = True
133133
134134 self .assertTrue (start_found )
@@ -168,9 +168,9 @@ def test_output_nodetails_indeterminate(self):
168168 start_found = True
169169 if "progressUpdate" in event_type :
170170 message = event ["body" ]["message" ]
171- # We send an update on first message to set the details, so ignore the first update
171+ # Check on the first update we set the initial detail.
172172 if not update_found :
173- self .assertTrue ( message == " " , message )
173+ self .assertEqual ( "Initial Indeterminate Detail " , message )
174174 update_found = True
175175
176176 self .assertTrue (start_found )
0 commit comments