Skip to content

Commit

Permalink
Functional test for --quiet for --inline-direct flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeatty10 committed Nov 5, 2024
1 parent ee0d677 commit df7aaee
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/functional/show/test_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,16 @@ def test_inline_direct_pass(self, project):
# which will load the adapter fully and satisfy the teardown code.
run_dbt(["seed"])

def test_inline_direct_pass_quiet(self, project):
query = f"select * from {project.test_schema}.sample_seed"
(_, log_output) = run_dbt_and_capture(["show", "--quiet", "--inline-direct", query])
assert "Previewing inline node" not in log_output
assert "sample_num" in log_output
assert "sample_bool" in log_output

# See prior test for explanation of why this is here
run_dbt(["seed"])


class TestShowInlineDirectFail(ShowBase):

Expand Down

0 comments on commit df7aaee

Please sign in to comment.