Skip to content

Commit

Permalink
feat(helper-setup): strip whitespace for undefined nunjucks vars - pa…
Browse files Browse the repository at this point in the history
…rt 4
  • Loading branch information
RasmusSkytte committed Jan 19, 2024
1 parent 6221213 commit 88e0dd6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions testthat/helper-setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,23 @@ get_test_conns <- function() {

# Define our local connection backends
conn_list <- list(
{{ conn_list -}}
{{ conn_list }}
)

# Define our local connection arguments
conn_args <- list(
{{ conn_args -}}
{{ conn_args }}
)

# Define post connection commands to run
{% if conn_post_connect %}
conn_post_connect <- list(
{{ conn_post_connect -}}
{{ conn_post_connect }}
)
{% endif %}
{% if not conn_post_connect %}
conn_post_connect <- list()
{% endif %}

} else {

Expand Down

0 comments on commit 88e0dd6

Please sign in to comment.