From eff6adc06ba0f95bdef75957460bcf88d3ca4829 Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Tue, 26 Sep 2023 23:38:04 +0100 Subject: [PATCH] Fix callback test --- tests/sample/schema_failing_test.yml | 71 ++-------------------------- 1 file changed, 3 insertions(+), 68 deletions(-) diff --git a/tests/sample/schema_failing_test.yml b/tests/sample/schema_failing_test.yml index c75df8152..f19639355 100644 --- a/tests/sample/schema_failing_test.yml +++ b/tests/sample/schema_failing_test.yml @@ -1,54 +1,11 @@ version: 2 models: - - name: customers - description: This table has basic information about a customer, as well as some derived facts based on a customer's orders - - columns: - - name: customer_id - description: This is a unique identifier for a customer - tests: - - unique - - not_null - - - name: first_name - description: Customer's first name. PII. - - - name: last_name - description: Customer's last name. PII. - - - name: first_order - description: Date (UTC) of a customer's first order - - - name: most_recent_order - description: Date (UTC) of a customer's most recent order - - - name: number_of_orders - description: Count of the number of orders a customer has placed - - - name: total_order_amount - description: Total value (AUD) of a customer's orders - name: orders description: This table has basic information about orders, as well as some derived facts based on payments columns: - - name: order_id - tests: - - unique - - not_null - description: This is a unique identifier for an order - - - name: customer_id - description: Foreign key to the customers table - tests: - - not_null - - relationships: - to: ref('customers') - field: customer_id - - - name: order_date - description: Date (UTC) that the order was placed - name: status description: '{{ doc("orders_status") }}' @@ -56,28 +13,6 @@ models: - accepted_values: # this test will fail, since this column has more values values: ['placed'] - - - name: amount - description: Total amount (AUD) of the order - tests: - - not_null - - - name: credit_card_amount - description: Amount of the order (AUD) paid for by credit card - tests: - - not_null - - - name: coupon_amount - description: Amount of the order (AUD) paid for by coupon - tests: - - not_null - - - name: bank_transfer_amount - description: Amount of the order (AUD) paid for by bank transfer - tests: - - not_null - - - name: gift_card_amount - description: Amount of the order (AUD) paid for by gift card - tests: - - not_null + config: + severity: warn + warn_if: ">1"