Skip to content

Deprecated Functionality with dbt arguments Property Update #104

@jbaber09

Description

@jbaber09

When using dbt_constraints.foreign_key tests, I am receiving the deprecation message below:

[WARNING][MissingArgumentsPropertyInGenericTestDeprecation]: Deprecated
functionality
Found top-level arguments to test `dbt_constraints.foreign_key` defined on
'model_name' in package 'dbt_project_name'
(models/folder/sub_folder/docs/model_name.yml). Arguments to
generic tests should be nested under the `arguments` property.

When adding the arguments property to the test as outlined in the dbt documentation, the dbt_constraints.foreign_key throws an error since it doesn't align with the previous test format supported by dbt. Here is the original documentation that I have found from dbt on this update.

This is not failing any models, but I recommend addressing this so users do not see the deprecation notice when using your test/constraint package. 🙃

Thank you for your help, and love the package!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions