Skip to content

Fix: Remove trailing newline from dbt multiline test kwargs.#2289

Merged
crericha merged 1 commit intomainfrom
multiline-dbt-test-kwargs
Mar 17, 2024
Merged

Fix: Remove trailing newline from dbt multiline test kwargs.#2289
crericha merged 1 commit intomainfrom
multiline-dbt-test-kwargs

Conversation

@crericha
Copy link
Contributor

dbt test kwargs can be multiline. According to the yaml standard, multiline values will end in a newline. This causes a problem with Jinja rendering, where it fails to parse when the trailing newline is present. This PR removes the trailing newline when building the test kwargs.

@crericha crericha requested a review from a team March 16, 2024 04:00
@crericha crericha merged commit 7b320a6 into main Mar 17, 2024
@crericha crericha deleted the multiline-dbt-test-kwargs branch March 17, 2024 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants