Skip to content

Commit 1754d51

Browse files
committed
Clean up rebase
1 parent 8782e9d commit 1754d51

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
@@ -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):

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)