Skip to content

Commit

Permalink
Whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
wouter committed Aug 24, 2023
1 parent c997099 commit 086559c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions macros/tests.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@
{% if not test_report.succeeded %}
{{ dbt_unit_testing.show_test_report(test_configuration, test_report) }}
{% endif %}
select 1 as a from (select 1) as t where {{ not test_report.succeeded }}

select 1 as a from (select 1) as t where {{ not test_report.succeeded }}
{{ dbt_unit_testing.clear_test_context() }}
{% endif %}
{% endmacro %}

{% macro build_configuration_and_test_queries(model_node, test_description, options, mocks_and_expectations_json_str) %}
{{ dbt_unit_testing.set_test_context("model_being_tested", dbt_unit_testing.ref_cte_name(model_node)) }}
{% set test_configuration = {
"model_name": model_node.model_name,
"description": test_description,
"model_name": model_node.model_name,
"description": test_description,
"model_node": model_node,
"options": dbt_unit_testing.merge_configs([options])}
"options": dbt_unit_testing.merge_configs([options])}
%}
{{ dbt_unit_testing.set_test_context("options", test_configuration.options) }}

{{ dbt_unit_testing.verbose("CONFIG: " ~ test_configuration) }}

{% do test_configuration.update (dbt_unit_testing.build_mocks_and_expectations(test_configuration, mocks_and_expectations_json_str)) %}
{% set test_queries = dbt_unit_testing.build_test_queries(test_configuration) %}

Expand Down
8 changes: 4 additions & 4 deletions macros/utils.sql
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@
{% endmacro %}

{% macro model_node (node) %}
{% set graph_nodes = graph.nodes.values() |
selectattr('resource_type', 'in', ['model', 'snapshot', 'seed']) |
selectattr('package_name', 'equalto', node.package_name) |
selectattr('name', 'equalto', node.name) |
{% set graph_nodes = graph.nodes.values() |
selectattr('resource_type', 'in', ['model', 'snapshot', 'seed']) |
selectattr('package_name', 'equalto', node.package_name) |
selectattr('name', 'equalto', node.name) |
list %}
{% if graph_nodes | length > 0 %}
{% if node.version is defined and node.version is not none %}
Expand Down

0 comments on commit 086559c

Please sign in to comment.