Skip to content

Commit

Permalink
Add card with a join to exposure tests (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
gouline committed Mar 14, 2024
1 parent 27821ef commit f8e803a
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/fixtures/api/collection/root/items.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,22 @@
"favorite": false,
"model": "card"
},
{
"description": null,
"collection_position": null,
"name": "Orders Customers",
"id": 23,
"display": "table",
"last-edit-info": {
"id": 1,
"email": "dbtmetabase@example.com",
"first_name": "dbtmetabase",
"last_name": null,
"timestamp": "2024-01-26T23:34:25.467752Z"
},
"favorite": false,
"model": "card"
},
{
"description": null,
"collection_position": null,
Expand Down
23 changes: 23 additions & 0 deletions tests/fixtures/exposure/collection/our_analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,29 @@ exposures:
email: user@example.com
depends_on:
- ref('orders')
- name: orders_customers
label: Orders Customers
description: '### Visualization: Table
No description provided in Metabase
#### Metadata
Metabase ID: __23__
Created On: __2024-01-26T23:34:25.436685__'
type: analysis
url: http://localhost:3000/card/23
maturity: medium
owner:
name: dbtmetabase
email: dbtmetabase@example.com
depends_on:
- ref('stg_payments')
- name: orders_customers_filtered
label: Orders Customers Filtered
description: '### Visualization: Table
Expand Down
23 changes: 23 additions & 0 deletions tests/fixtures/exposure/default/exposures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,29 @@ exposures:
email: user@example.com
depends_on:
- ref('orders')
- name: orders_customers
label: Orders Customers
description: '### Visualization: Table
No description provided in Metabase
#### Metadata
Metabase ID: __23__
Created On: __2024-01-26T23:34:25.436685__'
type: analysis
url: http://localhost:3000/card/23
maturity: medium
owner:
name: dbtmetabase
email: dbtmetabase@example.com
depends_on:
- ref('stg_payments')
- name: orders_customers_filtered
label: Orders Customers Filtered
description: '### Visualization: Table
Expand Down

0 comments on commit f8e803a

Please sign in to comment.