Commit c2f9175
committed
test: Add comprehensive multi-entity integration tests for dbt
Add three levels of multi-entity integration tests using real CLI workflows:
1. Easy scenario (test_multi_entity_easy_cli_workflow):
- 2 entities (user_id, product_id)
- Basic feast dbt import with validation
- Tests user_product_interactions model
2. Medium scenario (test_multi_entity_medium_cli_with_validation):
- 3 entities (user_id, merchant_id, location_id)
- Multiple imports with entity validation
- Code generation testing with --output flag
- Tests transaction_features model
3. Complex scenario (test_multi_entity_complex_full_workflow):
- 4 unique entities with reuse across models
- Tests user_merchant_txn, user_product_views, merchant_location_stats
- Full registry validation
- Entity reuse verification
Test infrastructure:
- conftest.py: Skips tests if manifest.json missing (requires dbt build)
- pytest.ini: Configures test markers and isolation
- 6 dbt models with multi-entity configurations
- 5 seed CSV files for test data
All tests use subprocess to run actual feast CLI commands, not mocks.
Signed-off-by: yassinnouh21 <yassinnouh21@gmail.com>1 parent ad1848a commit c2f9175
File tree
17 files changed
+1540
-0
lines changed- sdk/python/tests/integration/dbt
- test_dbt_project
- models
- seeds
17 files changed
+1540
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments