Skip to content

Commit

Permalink
rework some tests based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
amishas157 committed Oct 3, 2024
1 parent b13c166 commit e41f9a2
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 19 deletions.
3 changes: 3 additions & 0 deletions models/staging/stg_account_signers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ models:
- name: ledger_entry_change
tests:
- not_null
- accepted_values:
values: [0, 1, 2]
quote: false
- name: deleted
description: '{{ doc("deleted") }}'
tests:
Expand Down
4 changes: 0 additions & 4 deletions models/staging/stg_claimable_balances.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,9 @@ models:

- name: asset_code
description: '{{ doc("asset_code") }}'
tests:
- not_null

- name: asset_issuer
description: '{{ doc("asset_issuer") }}'
tests:
- not_null

- name: asset_id
description: '{{ doc("asset_id") }}'
Expand Down
1 change: 0 additions & 1 deletion models/staging/stg_contract_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ models:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- contract_code_hash
- contract_code_ext_v
- last_modified_ledger
- ledger_entry_change
meta:
Expand Down
7 changes: 1 addition & 6 deletions models/staging/stg_contract_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ models:
description: "Monitors the freshness of your table over time, as the expected time between data updates."
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- contract_id
- contract_data_xdr
- ledger_key_hash
- last_modified_ledger
- ledger_entry_change
meta:
Expand All @@ -35,13 +34,9 @@ models:

- name: asset_code
description: '{{ doc("asset_code") }}'
tests:
- not_null

- name: asset_issuer
description: '{{ doc("asset_issuer") }}'
tests:
- not_null

- name: asset_type
description: '{{ doc("asset_type") }}'
Expand Down
4 changes: 0 additions & 4 deletions models/staging/stg_history_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,9 @@ models:

- name: asset_code
description: '{{ doc("asset_code") }}'
tests:
- not_null

- name: asset_issuer
description: '{{ doc("asset_issuer") }}'
tests:
- not_null

- name: batch_id
description: '{{ doc("batch_id") }}'
Expand Down
4 changes: 0 additions & 4 deletions models/staging/stg_trust_lines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,9 @@ models:

- name: asset_issuer
description: '{{ doc("asset_issuer") }}'
tests:
- not_null

- name: asset_code
description: '{{ doc("asset_code") }}'
tests:
- not_null

- name: liquidity_pool_id
description: '{{ doc("liquidity_pool_id") }}'
Expand Down

0 comments on commit e41f9a2

Please sign in to comment.