Skip to content

Commit 667d88d

Browse files
committed
Clean up rebase
1 parent f9d649b commit 667d88d

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

sqlmesh/core/console.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -840,18 +840,16 @@ def update_promotion_progress(
840840
and snapshot.snapshot_id in snapshots_with_virtual_views
841841
):
842842
if self.verbosity >= Verbosity.VERBOSE:
843-
action_str = (
844-
""
843+
action_str = ""
845844
if promoted:
846845
action_str = (
847846
"[yellow]updated[/yellow]"
848847
if snapshot.previous_version
849848
else "[green]created[/green]"
850849
)
851850
action_str = action_str or "[red]dropped[/red]"
852-
).ljust(len("promoted"))
853851
self.promotion_progress.live.console.print(
854-
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}"
852+
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)}"
855853
)
856854
self.promotion_progress.update(self.promotion_task, refresh=True, advance=1)
857855

tests/cli/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def test_plan_verbose(runner, tmp_path):
294294
)
295295
assert_plan_success(result)
296296
assert "sqlmesh_example.seed_model created" in result.output
297-
assert "sqlmesh_example.seed_model promoted" in result.output
297+
assert "sqlmesh_example.full_model created" in result.output
298298

299299

300300
def test_plan_very_verbose(runner, tmp_path, copy_to_temp_path):

0 commit comments

Comments
 (0)