Skip to content

Commit aa3f8fb

Browse files
committed
Clean up rebase
1 parent ee829e7 commit aa3f8fb

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
@@ -968,18 +968,16 @@ def update_promotion_progress(
968968
and snapshot.snapshot_id in snapshots_with_virtual_views
969969
):
970970
if self.verbosity >= Verbosity.VERBOSE:
971-
action_str = (
972-
""
971+
action_str = ""
973972
if promoted:
974973
action_str = (
975974
"[yellow]updated[/yellow]"
976975
if snapshot.previous_version
977976
else "[green]created[/green]"
978977
)
979978
action_str = action_str or "[red]dropped[/red]"
980-
).ljust(len("promoted"))
981979
self.promotion_progress.live.console.print(
982-
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}"
980+
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)}"
983981
)
984982
self.promotion_progress.update(self.promotion_task, refresh=True, advance=1)
985983

tests/cli/test_cli.py

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

300300

301301
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)