change "tests:" to "data_tests:"

This commit is contained in:
Pablo Martin 2025-01-13 16:00:35 +01:00
parent db1edf7a1c
commit c3c628aec4
29 changed files with 1565 additions and 1565 deletions

View file

@ -9,33 +9,33 @@ models:
- name: id_record
data_type: text
description: Unique identifier for the record.
tests:
data_tests:
- unique
- not_null
- name: id_user_partner
data_type: text
description: Identifier for the partner user associated with the check-in.
tests:
data_tests:
- not_null
- name: id_reservation
data_type: text
description: Unique identifier for the reservation associated with the check-in.
tests:
data_tests:
- not_null
- name: id_accommodation
data_type: text
description: Unique identifier for the accommodation associated with the reservation.
tests:
data_tests:
- not_null
- name: id_currency
data_type: bigint
description: "Id of the currency, works as a foreign key to the
currency table"
tests:
data_tests:
- not_null
- relationships:
to: ref('stg_core__currency')
@ -64,7 +64,7 @@ models:
- name: reservation_total_amount_in_local_currency
data_type: numeric
description: Total cost amount in guest currency for the reservation.
tests:
data_tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
strictly: true
@ -73,19 +73,19 @@ models:
data_type: text
description: |
Currency ISO code used by guest for the reservation.
tests:
data_tests:
- not_null
- name: channel
data_type: text
description: Booking channel or source.
tests:
data_tests:
- not_null
- name: checkin_date_utc
data_type: date
description: Check-in date for the booking.
tests:
data_tests:
- not_null
- name: checkin_time_utc
@ -95,13 +95,13 @@ models:
- name: checkout_date_utc
data_type: date
description: Check-out date for the booking.
tests:
data_tests:
- not_null
- name: number_of_nights
data_type: integer
description: Number of nights for the reservation.
tests:
data_tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 1
@ -140,29 +140,29 @@ models:
- name: updated_at_utc
data_type: timestamp without time zone
description: Timestamp of the last update to the record.
tests:
data_tests:
- not_null
- name: updated_date_utc
data_type: date
description: Date of the last update to the record.
tests:
data_tests:
- not_null
- name: cosmos_creation_at_utc
data_type: timestamp without time zone
description: Timestamp when the record was created in Cosmos DB.
tests:
data_tests:
- not_null
- name: cosmos_creation_date_utc
data_type: date
description: Date when the record was created in Cosmos DB.
tests:
data_tests:
- not_null
- name: created_date_utc
data_type: date
description: Date when the record was created.
tests:
data_tests:
- not_null