Skip to content

Commit

Permalink
Filter data in tests (#78)
Browse files Browse the repository at this point in the history
* Filter data in tests

* remove/optimize tests

* Remove accepted values test t/f
  • Loading branch information
amishas157 authored Aug 22, 2024
1 parent a5660e6 commit 0e4f931
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 10 deletions.
3 changes: 0 additions & 3 deletions models/marts/enriched_history/enriched_history_operations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,6 @@ models:
- not_null:
config:
where: closed_at > current_timestamp - interval 2 day
- accepted_values:
values: [true, false]
quote: false

- name: fee_charged
description: '{{ doc("fee_charged") }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@ models:
- not_null:
config:
where: closed_at > current_timestamp - interval 2 day
- accepted_values:
values: [true, false]
quote: false

- name: fee_charged
description: '{{ doc("fee_charged") }}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ models:
- accepted_values:
values: [0, 1, 2]
quote: false
config:
where: batch_run_date > current_datetime - interval 2 day

- name: deleted
description: '{{ doc("deleted") }}'
Expand Down
2 changes: 2 additions & 0 deletions models/marts/ledger_current_state/offers_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ models:
- accepted_values:
values: [0, 1, 2]
quote: false
config:
where: closed_at > current_timestamp - interval 2 day

- name: closed_at
description: '{{ doc("closed_at") }}'
Expand Down
1 change: 0 additions & 1 deletion models/marts/ledger_current_state/trust_lines_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,3 @@ models:
- not_null:
config:
where: closed_at > current_timestamp - interval 2 day
- unique
3 changes: 0 additions & 3 deletions models/marts/ledger_current_state/ttl_current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ models:
- not_null:
config:
where: closed_at > current_timestamp - interval 2 day
- accepted_values:
values: [true, false]
quote: false

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

0 comments on commit 0e4f931

Please sign in to comment.