Skip to content

Commit 8b9aacb

Browse files
committed
Replace 'successfully' with check mark
1 parent 04b7993 commit 8b9aacb

4 files changed

Lines changed: 16 additions & 16 deletions

File tree

sqlmesh/core/console.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ def stop_evaluation_progress(self, success: bool = True) -> None:
713713
if self.evaluation_progress_live:
714714
self.evaluation_progress_live.stop()
715715
if success:
716-
self.log_success(f"{GREEN_CHECK_MARK} Model batches executed successfully")
716+
self.log_success(f"{GREEN_CHECK_MARK} Model batches executed")
717717

718718
self.evaluation_progress_live = None
719719
self.evaluation_total_progress = None
@@ -760,7 +760,7 @@ def stop_creation_progress(self, success: bool = True) -> None:
760760
self.creation_progress.stop()
761761
self.creation_progress = None
762762
if success:
763-
self.log_success(f"\n{GREEN_CHECK_MARK} Physical layer updated successfully")
763+
self.log_success(f"\n{GREEN_CHECK_MARK} Physical layer updated")
764764

765765
self.environment_naming_info = EnvironmentNamingInfo()
766766
self.default_catalog = None
@@ -801,7 +801,7 @@ def start_promotion_progress(
801801
if self.promotion_progress is None:
802802
self.promotion_progress = Progress(
803803
TextColumn(
804-
"[bold blue]Updating virtual layer",
804+
"[bold blue]Updating virtual layer ", # space to align with other progress bars
805805
justify="right",
806806
),
807807
BarColumn(bar_width=PROGRESS_BAR_WIDTH),
@@ -838,7 +838,7 @@ def stop_promotion_progress(self, success: bool = True) -> None:
838838
self.promotion_progress.stop()
839839
self.promotion_progress = None
840840
if success:
841-
self.log_success(f"\n{GREEN_CHECK_MARK} Virtual layer updated successfully")
841+
self.log_success(f"\n{GREEN_CHECK_MARK} Virtual layer updated")
842842

843843
self.environment_naming_info = EnvironmentNamingInfo()
844844
self.default_catalog = None

tests/cli/test_cli.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,15 @@ def assert_new_env(result, new_env="prod", from_env="prod", initialize=True) ->
129129

130130

131131
def assert_model_versions_created(result) -> None:
132-
assert "Physical layer updated successfully" in result.output
132+
assert "Physical layer updated" in result.output
133133

134134

135135
def assert_model_batches_evaluated(result) -> None:
136-
assert "Model batches executed successfully" in result.output
136+
assert "Model batches executed" in result.output
137137

138138

139139
def assert_env_views_updated(result) -> None:
140-
assert "Virtual layer updated successfully" in result.output
140+
assert "Virtual layer updated" in result.output
141141

142142

143143
def assert_backfill_success(result) -> None:
@@ -154,7 +154,7 @@ def assert_plan_success(result, new_env="prod", from_env="prod") -> None:
154154

155155

156156
def assert_virtual_update(result) -> None:
157-
assert "Virtual Update executed successfully" in result.output
157+
assert "Virtual Update executed" in result.output
158158

159159

160160
def test_version(runner, tmp_path):
@@ -246,7 +246,7 @@ def test_plan_skip_backfill(runner, tmp_path, flag):
246246
)
247247
assert result.exit_code == 0
248248
assert_virtual_update(result)
249-
assert "Model batches executed successfully" not in result.output
249+
assert "Model batches executed" not in result.output
250250

251251

252252
def test_plan_auto_apply(runner, tmp_path):
@@ -473,9 +473,9 @@ def test_plan_dev_no_prompts(runner, tmp_path):
473473
cli, ["--log-file-dir", tmp_path, "--paths", tmp_path, "plan", "dev", "--no-prompts"]
474474
)
475475
assert "Apply - Backfill Tables [y/n]: " in result.output
476-
assert "Physical layer updated successfully" not in result.output
477-
assert "Model batches executed successfully" not in result.output
478-
assert "The target environment has been updated successfully" not in result.output
476+
assert "Physical layer updated" not in result.output
477+
assert "Model batches executed" not in result.output
478+
assert "The target environment has been updated" not in result.output
479479

480480

481481
def test_plan_dev_auto_apply(runner, tmp_path):

tests/core/test_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ def test_plan_runs_audits_on_dev_previews(sushi_context: Context, capsys, caplog
14031403
log = caplog.text
14041404
assert "'not_null' audit error:" in log
14051405
assert "'at_least_one_non_blocking' audit error:" in log
1406-
assert "Virtual layer updated successfully" in stdout
1406+
assert "Virtual layer updated" in stdout
14071407

14081408

14091409
def test_environment_statements(tmp_path: pathlib.Path):

tests/integrations/jupyter/test_magics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def test_plan(
303303
)
304304
# TODO: Is this what we expect?
305305
assert text_output[2] == ""
306-
assert text_output[3] == "Virtual layer updated successfully"
306+
assert text_output[3] == "Virtual layer updated"
307307
assert convert_all_html_output_to_tags(output) == [
308308
["pre", "span"],
309309
["pre"] + ["span"] * 4,
@@ -326,7 +326,7 @@ def test_run_dag(
326326
assert not output.stderr
327327
assert len(output.outputs) == 2
328328
assert convert_all_html_output_to_text(output) == [
329-
"✔ Model batches executed successfully",
329+
"✔ Model batches executed",
330330
"Run finished for environment 'prod'",
331331
]
332332
assert get_all_html_output(output) == [
@@ -337,7 +337,7 @@ def test_run_dag(
337337
h(
338338
"span",
339339
{"style": SUCCESS_STYLE},
340-
"✔ Model batches executed successfully",
340+
"✔ Model batches executed",
341341
autoescape=False,
342342
),
343343
autoescape=False,

0 commit comments

Comments
 (0)