Skip to content

Commit 83cfc2b

Browse files
committed
Fix tests
1 parent c2b6a03 commit 83cfc2b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

sqlmesh_dbt/cli.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,14 @@ def dbt(
102102
)
103103
@vars_option
104104
@click.pass_context
105-
def run(ctx: click.Context, vars: t.Optional[t.Dict[str, t.Any]], **kwargs: t.Any) -> None:
105+
def run(
106+
ctx: click.Context,
107+
vars: t.Optional[t.Dict[str, t.Any]],
108+
env: t.Optional[str] = None,
109+
**kwargs: t.Any,
110+
) -> None:
106111
"""Compile SQL and execute against the current target database."""
107-
_get_dbt_operations(ctx, vars).run(**kwargs)
112+
_get_dbt_operations(ctx, vars).run(environment=env, **kwargs)
108113

109114

110115
@dbt.command(name="list")

0 commit comments

Comments
 (0)