dbt-labs / dbt-labs/dbt

[CT-2918] Implement inline fixture reuse, in a "fixtures" yaml file section

Open
#8,291 1 comment 0 reactions 0 assignees View on GitHub
engine:v1 type:feature unit tests
Dominant language
Rust
Stars
13.8k
Forks
2.6k
Avg merge
21h 31m
Merged PRs (30d)
56

Description

### Description

Enable reuse of fixtures in unit tests.
```
fixtures:
- name: my_model_a_with_nulls
rows:
- {id: 1, b: 2}
- {id: null, b: null}
unit:
- model: my_model
tests:
- name: test_name
given:
- input: ref('my_model_a')
fixture: my_model_a_with_nulls
```

### Acceptance Criteria

Inline csv input works in unit tests.

### Impact to other teams

None

### Will backports be required?

No

### Context

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.