From 88a3c7b1994c045e28dc15c58b46e70715834319 Mon Sep 17 00:00:00 2001 From: Pedro Sousa Date: Mon, 25 Sep 2023 18:59:00 +0100 Subject: [PATCH] Code cleanup --- integration-tests/tests/unit/model_b_references_a.sql | 2 +- macros/tests.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integration-tests/tests/unit/model_b_references_a.sql b/integration-tests/tests/unit/model_b_references_a.sql index b1ab7f8..963b3e5 100644 --- a/integration-tests/tests/unit/model_b_references_a.sql +++ b/integration-tests/tests/unit/model_b_references_a.sql @@ -17,7 +17,7 @@ UNION ALL -{% call test_condition_on_model_query('model_b_references_a', "should ", {}, +{% call test_condition_on_model_query('model_b_references_a', "should quote CTE", {}, assert_should_contain, dbt_unit_testing.quote_identifier("model_a")) %} {% call dbt_unit_testing.mock_ref ('model_a') %} select 1 as id diff --git a/macros/tests.sql b/macros/tests.sql index ac56896..557118b 100644 --- a/macros/tests.sql +++ b/macros/tests.sql @@ -20,7 +20,7 @@ {% 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, + "model_name": model_node.name, "description": test_description, "model_node": model_node, "options": dbt_unit_testing.merge_configs([options])}