From fb4775bd071c9e25c8aef24d0058d58d51107429 Mon Sep 17 00:00:00 2001 From: Joaquin Ossa Date: Sun, 23 Feb 2025 16:11:37 +0100 Subject: [PATCH] Updated tests --- models/staging/resolutions/schema.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/models/staging/resolutions/schema.yml b/models/staging/resolutions/schema.yml index 6e587f1..ed62f40 100644 --- a/models/staging/resolutions/schema.yml +++ b/models/staging/resolutions/schema.yml @@ -205,6 +205,9 @@ models: - name: deposit_retained_currency data_type: text description: "Currency of the deposit retained." + data_tests: + - not_null: + where: "deposit_retained_amount_in_txn_currency > 0 and document_version <> 'OldClaimToIncidentModel'" - name: has_guest_contributed_to_cost data_type: boolean @@ -228,6 +231,9 @@ models: - name: guest_contribution_currency data_type: text description: "Currency of the guest contribution." + data_tests: + - not_null: + where: "guest_contribution_amount_in_txn_currency > 0 and document_version <> 'OldClaimToIncidentModel'" - name: guest_contacted_about_damage data_type: boolean @@ -483,7 +489,7 @@ models: compensation from another platform." data_tests: - not_null: - where: "third_party_claim_amount_in_txn_currency > 0" + where: "third_party_claim_amount_in_txn_currency > 0 and document_version <> 'OldClaimToIncidentModel'" - name: cosmos_db_timestamp_utc data_type: timestamp