Skip to content

Commit

Permalink
Merge pull request #943 from elementary-data/ele-1073-run-elementary-…
Browse files Browse the repository at this point in the history
…on-the-synced-schemas

Added 'capture_output' flags to 'DbtRunner.run' and 'DbtRunner.test'.
  • Loading branch information
elongl authored Jun 25, 2023
2 parents e5f13cd + a57bbf8 commit 84e2fbf
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions elementary/clients/dbt/dbt_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ def run(
full_refresh: bool = False,
vars: Optional[dict] = None,
quiet: bool = False,
capture_output: bool = False,
) -> bool:
command_args = ["run"]
if full_refresh:
Expand All @@ -181,7 +182,10 @@ def run(
if select:
command_args.extend(["-s", select])
success, _ = self._run_command(
command_args=command_args, vars=vars, quiet=quiet
command_args=command_args,
vars=vars,
quiet=quiet,
capture_output=capture_output,
)
return success

Expand All @@ -190,12 +194,16 @@ def test(
select: Optional[str] = None,
vars: Optional[dict] = None,
quiet: bool = False,
capture_output: bool = False,
) -> bool:
command_args = ["test"]
if select:
command_args.extend(["-s", select])
success, _ = self._run_command(
command_args=command_args, vars=vars, quiet=quiet
command_args=command_args,
vars=vars,
quiet=quiet,
capture_output=capture_output,
)
return success

Expand Down

0 comments on commit 84e2fbf

Please sign in to comment.