Skip to content

[Bug] MissingArgumentsPropertyInGenericTestDeprecation misleading on properties. #12572

@pempey

Description

@pempey

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

The following yaml will raise a MissingArgumentsPropertyInGenericTestDeprecation warning:

       data_tests:
          - unique:
              where: "valid_to = NULL"

This leads the developer to resolve the warning by moving the where under the arguments property

       data_tests:
          - unique:
             arguments:
               where: "valid_to = NULL"

Expected Behavior

The warning that should be raised in a property error, PropertyMovedToConfigDeprecation so that the developer is lead to move the where under the config property.

Steps To Reproduce

Define a generic unique data_test to have a where field as a top level property.

Relevant log output

Environment

- OS: macOS-15.6.1-x86_64-i386-64bit
- Python: 3.10.3
- dbt: 1.11.2

Which database adapter are you using with dbt?

No response

Additional Context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions