Skip to content

Commit

Permalink
Add useviews model tests
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 5ce7ac8 commit 349016c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions models/brac/useviews/useviews.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
version: 2

models:
- name: useview_postnatal_care
columns:
- name: uuid
tests:
- not_null
- unique
- relationships:
to: ref('couchdb')
field: doc ->> '_id'
- name: form
tests:
- not_null
- name: useview_pregnancy
columns:
- name: uuid
Expand Down
8 changes: 8 additions & 0 deletions models/brac/views/views.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@ models:
- relationships:
to: ref('useview_pregnancy')
field: uuid
- name: reported_by
tests:
- not_null
- name: form
tests:
- not_null
- accepted_values:
values: [pregnancy]

0 comments on commit 349016c

Please sign in to comment.