Skip to content

Commit ebe1b7a

Browse files
committed
test: expect build --no-audits to skip Python checks in the E2E suites
1 parent 84365df commit ebe1b7a

2 files changed

Lines changed: 5 additions & 22 deletions

File tree

‎tests/e2e/src/sqlbuild/cli/commands/main/build/no_tests_no_audits/test_build_no_tests_no_audits.py‎

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -257,14 +257,7 @@ def export_check(ctx):
257257
db_path: Path = project_dir / "factory_nodes_project.duckdb"
258258

259259
run_result: subprocess.CompletedProcess[str] = run_sqb(
260-
command=(
261-
"--no-color",
262-
"build",
263-
"--no-tests",
264-
"--no-audits",
265-
"--select",
266-
"+asset:orders_export",
267-
),
260+
command=("--no-color", "build", "--no-tests", "--select", "+asset:orders_export"),
268261
project_dir=project_dir,
269262
)
270263
bare_result: subprocess.CompletedProcess[str] = run_sqb(
@@ -2260,14 +2253,7 @@ def test_given_check_selector_when_running_build_then_check_needs_its_checked_no
22602253
)
22612254

22622255
result: subprocess.CompletedProcess[str] = run_sqb(
2263-
command=(
2264-
"--no-color",
2265-
"build",
2266-
"--no-tests",
2267-
"--no-audits",
2268-
"--select",
2269-
*test_case.select,
2270-
),
2256+
command=("--no-color", "build", "--no-tests", "--select", *test_case.select),
22712257
project_dir=project_dir,
22722258
)
22732259

‎tests/e2e/src/sqlbuild/cli/commands/main/check/test_check.py‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
project_kind="terminal_loader",
179179
),
180180
CheckCommandTestCase(
181-
description="build without tests or audits still executes Python checks",
181+
description="build without tests or audits skips Python checks",
182182
command=(
183183
"--no-color",
184184
"build",
@@ -188,11 +188,8 @@
188188
"tag:failure",
189189
),
190190
expected_returncode=0,
191-
expected_stdout_fragments=(
192-
"Execution sqb build",
193-
"Python checks",
194-
"check_orders_export",
195-
),
191+
expected_stdout_fragments=("Execution sqb build",),
192+
expected_absent_fragments=("Python checks", "check_orders_export"),
196193
),
197194
CheckCommandTestCase(
198195
description="audit remains SQL audit only",

0 commit comments

Comments
 (0)