Skip to content

Commit

Permalink
fix root doc_type test, rename fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Lorena Rodriguez Viruel committed Aug 27, 2024
1 parent e5a12bf commit 1fea79b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions models/root/root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
4 changes: 2 additions & 2 deletions models/root/tests/document_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
File renamed without changes.

0 comments on commit 1fea79b

Please sign in to comment.