Skip to content

Tests don't run for deduplicate macro #579

@dbeatty10

Description

@dbeatty10

Describe the bug

This is one instance within #558

The deduplicate macro is untested because this code refers to test_dedupe rather than test_deduplicate:

  - name: test_dedupe
    tests:
      - dbt_utils.equality:
          compare_model: ref('data_deduplicate_expected')

Steps to reproduce

cd integration_tests
dbt build --select +test_dedupe

or

cd integration_tests
dbt build --select +test_deduplicate

Expected results

The relevant test would run.

Actual results

Neither example runs the relevant test.

For the first example, it gives this warning:

01:40:33  [WARNING]: Test 'test.dbt_utils_integration_tests.dbt_utils_equality_test_dedupe_ref_data_deduplicate_expected_.2275e15126' (models/sql/schema.yml) depends on a node named 'test_dedupe' which was not found

Are you interested in contributing the fix?

I'm your huckleberry.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions