From 1fea79b809dc3d368d6d0088d2e39bda8453eff6 Mon Sep 17 00:00:00 2001 From: Maria Lorena Rodriguez Viruel Date: Tue, 27 Aug 2024 10:17:39 -0400 Subject: [PATCH] fix root doc_type test, rename fixtures --- models/root/root.yml | 10 ++++------ models/root/tests/document_metadata.yml | 4 ++-- ...=> contacts_document_metadata_initial_expected.csv} | 0 ...ource_table_input.csv => contacts_initial_data.csv} | 0 4 files changed, 6 insertions(+), 8 deletions(-) rename test/fixtures/{contacts_document_metadata_input.csv => contacts_document_metadata_initial_expected.csv} (100%) rename test/fixtures/{contacts_test_source_table_input.csv => contacts_initial_data.csv} (100%) diff --git a/models/root/root.yml b/models/root/root.yml index d694f9c1..7a68fcf9 100644 --- a/models/root/root.yml +++ b/models/root/root.yml @@ -16,22 +16,20 @@ models: data_type: string constraints: - type: unique - tests: + data-tests: - not_null - unique - name: saved_timestamp data_type: timestamp - tests: + data-tests: - not_null - name: _deleted data_type: boolean - tests: + data-tests: - not_null - accepted_values: values: [true, false] - name: doc_type data_type: string - tests: + data-tests: - not_null - - accepted_values: - values: ['person', 'clinic'] diff --git a/models/root/tests/document_metadata.yml b/models/root/tests/document_metadata.yml index 58b4b267..f97c0011 100644 --- a/models/root/tests/document_metadata.yml +++ b/models/root/tests/document_metadata.yml @@ -10,7 +10,7 @@ unit_tests: given: - input: source('couchdb', "{{ env_var('POSTGRES_TABLE') }}") format: csv - fixture: contacts_test_source_table_input + fixture: contacts_initial_data expect: format: csv - fixture: contacts_document_metadata_input + fixture: contacts_document_metadata_initial_expected diff --git a/test/fixtures/contacts_document_metadata_input.csv b/test/fixtures/contacts_document_metadata_initial_expected.csv similarity index 100% rename from test/fixtures/contacts_document_metadata_input.csv rename to test/fixtures/contacts_document_metadata_initial_expected.csv diff --git a/test/fixtures/contacts_test_source_table_input.csv b/test/fixtures/contacts_initial_data.csv similarity index 100% rename from test/fixtures/contacts_test_source_table_input.csv rename to test/fixtures/contacts_initial_data.csv