Skip to content

Commit e942cba

Browse files
committed
Clean up rebase
1 parent fc409dd commit e942cba

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

sqlmesh/core/console.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,17 +1018,17 @@ def update_promotion_progress(
10181018
self.default_catalog if self.verbosity < Verbosity.VERY_VERBOSE else None,
10191019
dialect=self.dialect,
10201020
).ljust(self.promotion_column_widths["name"])
1021-
action_str = (
1022-
""
1021+
action_str = ""
10231022
if promoted:
10241023
action_str = (
10251024
"[yellow]updated[/yellow]"
10261025
if snapshot.previous_version
10271026
else "[green]created[/green]"
10281027
)
10291028
action_str = action_str or "[red]dropped[/red]"
1030-
).ljust(len("promoted"))
1031-
self.promotion_progress.live.console.print(f"{display_name} {action_str}")
1029+
self.promotion_progress.live.console.print(
1030+
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)}"
1031+
)
10321032
self.promotion_progress.update(self.promotion_task, refresh=True, advance=1)
10331033

10341034
def stop_promotion_progress(self, success: bool = True) -> None:

tests/cli/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ def test_plan_verbose(runner, tmp_path):
294294
cli, ["--log-file-dir", tmp_path, "--paths", tmp_path, "plan", "--verbose"], input="y\n"
295295
)
296296
assert_plan_success(result)
297-
assert "sqlmesh_example.seed_model created" in result.output
298-
assert "sqlmesh_example.seed_model promoted" in result.output
297+
assert "sqlmesh_example.seed_model created" 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)