Skip to content

Commit 9f68a6f

Browse files
fix: define mandatory_params as none in test_config_levels macro
The macro calls elementary.get_anomalies_test_configuration() with mandatory_params but it was never defined in scope. In the original dbt-data-reliability code, this was a parameter on the calling test macros. Since test_config_levels doesn't need mandatory param validation, define it locally as none. Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
1 parent f2d740b commit 9f68a6f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/e2e_dbt_project/macros/generic_tests/test_config_levels.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{%- if execute and elementary.is_test_command() %}
33
{%- set unexpected_config = [] %}
44
{%- set model_relation = dbt.load_relation(model) %}
5+
{%- set mandatory_params = none %}
56

67
{% set configuration_dict, metric_properties_dict =
78
elementary.get_anomalies_test_configuration(model_relation,

0 commit comments

Comments
 (0)