Skip to content

Commit 98a19b8

Browse files
committed
test: expect format to lay out a Databricks file end to end
1 parent 7f50735 commit 98a19b8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎tests/e2e/src/sqlclean/hosting/test_sqlclean_command.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,12 @@ def test_given_project_when_checking_then_reports_findings_and_exit_status(
318318
},
319319
),
320320
RewriteTestCase(
321-
description="format leaves a Databricks file, which SQLQuack parses but does not format, unchanged",
321+
description="format lays out a Databricks file",
322322
config='dialect = "databricks"\n',
323323
files={"models/q.sql": "select a from t\n"},
324-
arguments=("format", "--check"),
324+
arguments=("format",),
325325
expected_exit=0,
326-
expected_files={"models/q.sql": "select a from t\n"},
326+
expected_files={"models/q.sql": "SELECT a\nFROM t\n"},
327327
),
328328
RewriteTestCase(
329329
description="format lays out BigQuery and PostgreSQL files",

0 commit comments

Comments
 (0)