Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tracked by #8283
gshank opened this issue Aug 2, 2023 · 0 comments
Open
Tracked by #8283
Labels
enhancement New feature or request unit tests Issues related to built-in dbt unit testing functionality

Comments

@gshank
Copy link
Contributor

gshank commented Aug 2, 2023

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

@github-actions github-actions bot changed the title Implement inline fixture reuse, in a "fixtures" yaml file section [CT-2918] Implement inline fixture reuse, in a "fixtures" yaml file section Aug 2, 2023
@dbeatty10 dbeatty10 added enhancement New feature or request unit tests Issues related to built-in dbt unit testing functionality labels Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request unit tests Issues related to built-in dbt unit testing functionality
Projects
None yet
Development

No branches or pull requests

2 participants