Skip to content

Commit 370a4dd

Browse files
committed
Clean up rebase
1 parent b0e0eed commit 370a4dd

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

sqlmesh/core/console.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -973,18 +973,16 @@ def update_promotion_progress(
973973
and snapshot.snapshot_id in snapshots_with_virtual_views
974974
):
975975
if self.verbosity >= Verbosity.VERBOSE:
976-
action_str = (
977-
""
976+
action_str = ""
978977
if promoted:
979978
action_str = (
980979
"[yellow]updated[/yellow]"
981980
if snapshot.previous_version
982981
else "[green]created[/green]"
983982
)
984983
action_str = action_str or "[red]dropped[/red]"
985-
).ljust(len("promoted"))
986984
self.promotion_progress.live.console.print(
987-
f"{snapshot.display_name(self.environment_naming_info, self.default_catalog if self.verbosity < Verbosity.VERY_VERBOSE else None, dialect=self.dialect).ljust(self.PROGRESS_BAR_COLUMN_WIDTHS['name'])} {action_str}"
985+
f"{snapshot.display_name(self.environment_naming_info, self.default_catalog if self.verbosity < Verbosity.VERY_VERBOSE else None, dialect=self.dialect).ljust(self.PROGRESS_BAR_COLUMN_WIDTHS['name'])} {action_str.ljust(7)}"
988986
)
989987
self.promotion_progress.update(self.promotion_task, refresh=True, advance=1)
990988

tests/cli/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def test_plan_verbose(runner, tmp_path):
298298
)
299299
assert_plan_success(result)
300300
assert "sqlmesh_example.seed_model created" in result.output
301-
assert "sqlmesh_example.seed_model promoted" in result.output
301+
assert "sqlmesh_example.full_model created" in result.output
302302

303303

304304
def test_plan_very_verbose(runner, tmp_path, copy_to_temp_path):

tests/integrations/jupyter/test_magics.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,11 @@ def test_plan(
303303
)
304304
# TODO: Is this what we expect?
305305
assert text_output[2] == ""
306-
assert text_output[4] == "✔ Virtual layer updated"
306+
assert text_output[3] == "✔ Virtual layer updated"
307307
assert convert_all_html_output_to_tags(output) == [
308308
["pre", "span"],
309309
["pre"] + ["span"] * 5,
310310
["pre"],
311-
["pre"],
312311
["pre", "span"],
313312
]
314313

0 commit comments

Comments
 (0)