From df7aaee1fe8cb6942c49857575e19dd414a5eedb Mon Sep 17 00:00:00 2001 From: Doug Beatty Date: Mon, 4 Nov 2024 22:54:05 -0600 Subject: [PATCH] Functional test for `--quiet` for `--inline-direct` flag --- tests/functional/show/test_show.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/functional/show/test_show.py b/tests/functional/show/test_show.py index e795e92ffac..cd91a2bc3eb 100644 --- a/tests/functional/show/test_show.py +++ b/tests/functional/show/test_show.py @@ -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):