Skip to content

Commit

Permalink
Fix quoting for stringy test configs (#3459)
Browse files Browse the repository at this point in the history
* Fix quoting for stringy test configs

* Update changelog

automatic commit by git-black, original commits:
  9589dc9
  • Loading branch information
jtcohen6 authored and iknox-fa committed Feb 8, 2022
1 parent a7f06b2 commit 9f65163
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/dbt/parser/generic_test_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,10 @@ def get_test_name(self) -> Tuple[str, str]:

def construct_config(self) -> str:
configs = ",".join(
f"{key}=" + (
("\"" + value.replace('\"', '\\\"') + "\"") if isinstance(value, str)
else str(value)
)
[
f"{key}="
+ (
('"' + value.replace('"', '\\"') + '"')
if isinstance(value, str)
else str(value)
)
Expand Down

0 comments on commit 9f65163

Please sign in to comment.