@@ -289,9 +289,6 @@ def test_plan(
289289 with capture_output () as output :
290290 notebook .run_line_magic (magic_name = "plan" , line = "--no-prompts --auto-apply" )
291291
292- # TODO: Should this be going to stdout? This is printing the status updates for when each batch finishes for
293- # the models and how long it took
294- assert len (output .stdout .strip ().split ("\n " )) == 46
295292 assert not output .stderr
296293 assert len (output .outputs ) == 4
297294 text_output = convert_all_html_output_to_text (output )
@@ -325,10 +322,20 @@ def test_run_dag(
325322 )
326323 assert not output .stderr
327324 assert len (output .outputs ) == 6
328- assert convert_all_html_output_to_text (output ) == [
325+ html_text_actual = convert_all_html_output_to_text (output )
326+ html_text_expected = [
327+ "[2K" ,
328+ "Executing model batches ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━ 93.8% • "
329+ "15/16 • 0:00:01\n "
330+ "sushi.waiter_as_customer_by_day" ,
331+ "[1/1] sushi.waiter_as_customer_by_day [insert 2023-01-01 - 2023-01-02, " ,
332+ "audits ✔2] " ,
333+ "" ,
329334 "✔ Model batches executed" ,
330335 "Run finished for environment 'prod'" ,
331336 ]
337+ for txt_actual , txt_expected in zip (html_text_actual , html_text_expected ):
338+ assert txt_actual .startswith (txt_expected )
332339 assert get_all_html_output (output ) == [
333340 str (
334341 h (
0 commit comments