Skip to content

Commit

Permalink
Add more test to views models
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Lorena Rodriguez Viruel authored and Maria Lorena Rodriguez Viruel committed Oct 20, 2023
1 parent a7eaedd commit d68de81
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions models/brac/views/views.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,24 +137,30 @@ models:
- relationships:
to: ref('couchdb')
field: doc ->> '_id'
- name: ancview_pregnancy
- name: ancview_pregnancy_visit
columns:
- name: uuid
tests:
- not_null
- unique
- relationships:
to: ref('useview_pregnancy')
to: ref('useview_pregnancy_visit')
field: uuid
- name: reported_by
- name: ancview_delivery
columns:
- name: uuid
tests:
- not_null
- name: ancview_pregnancy_visit
- name: pregnancy_outcome
tests:
- not_null
- accepted_values:
values: ['healthy', 'still_birth']
- name: ancview_danger_sign
columns:
- name: uuid
tests:
- not_null
- unique
- relationships:
to: ref('useview_pregnancy_visit')
field: uuid
- name: form
tests:
- not_null

0 comments on commit d68de81

Please sign in to comment.