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

Docs: Fix Broken Links in Seeds and Tests #7380

Merged
merged 2 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/seeds/seed_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Seeds will be required in these sector-level spell additions to ensure proper le

## Using `dex.trades` as an Example for Sector-Level Spell Design Approach to Seeds:

1. Add new model seed to [the schema file](/seeds/_sector/dex/_schema.yml), to ensure proper data type assignments.
1. Add new model seed to [the schema file](/dbt_subprojects/dex/seeds/trades/_schema.yml), to ensure proper data type assignments.
2. Build a seed file in CSV format, which contains:
- All the unique keys on the model for downstream join conditions in tests.
- Fields which we want to test the results of the model execution.
- Example seed file [here](/seeds/_sector/dex/aerodrome_base_base_trades_seed.csv).
3. Within the [model schema file](/models/_sector/dex/trades/arbitrum/_schema.yml#L20-L23), call the [generic seed test](/tests/generic/check_dex_base_trades_seed.sql) with parameters necessary:
- Example seed file [here](/dbt_subprojects/dex/seeds/trades/aerodrome_base_base_trades_seed.csv).
3. Within the [model schema file](/dbt_subprojects/dex/models/trades/arbitrum/_schema.yml#23-25), call the [generic seed test](/dbt_subprojects/dex/tests/generic/check_dex_base_trades_seed.sql) with parameters necessary:
- Seed file name.
- Filter(s) for project versions, if the spell is split into versions per project.
4. Ultimately, following the above steps, the test query built and executed against seed files lives in the generic seed macro [here](/dbt_macros/generic-tests/check_seed_macro.sql).
Expand Down
2 changes: 1 addition & 1 deletion docs/tests/test_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Tests tied to models are highly encouraged & at times required, depending on the

These tests would benefit all sector-level spells, first introduced in `nft.trades`:

- Validate column data types, as built [here](https://github.com/duneanalytics/spellbook/blob/d6b5acc1dbd01e67e6cb23d96da6f3fc3ec7d268/tests/generic/check_column_types.sql#L6) and called like [this](/models/_sector/nft/trades/chains/arbitrum/platforms/_schema.yml#L14).
- Validate column data types, as built [here](https://github.com/duneanalytics/spellbook/blob/d6b5acc1dbd01e67e6cb23d96da6f3fc3ec7d268/tests/generic/check_column_types.sql#L6) and called like [this](/dbt_subprojects/nft/models/_sector/trades/chains/arbitrum/platforms/_schema.yml#L14).

## Where to Store Tests?

Expand Down
Loading