first working template
This commit is contained in:
1 parent
62a3714562
commit
ca6bea351a
21 files changed
+684
-31
No files matched your search
@@ -0,0 +1,38 @@
|
||||
# Example Address: unit test expectations, generated with ods/040_seed.sql and kept in step with it.
|
||||
# Read by the generic tests beside this file (test_*.py, copied unchanged from the template).
|
||||
# Run from the domain repository: uv run data-domain unit <path to canonical_data_product/example>
|
||||
|
||||
tables:
|
||||
address:
|
||||
rows: 3
|
||||
samples:
|
||||
- address_id: 2f4c1a3e-0001-4a7b-9c11-000000000001
|
||||
address_type: Street Address
|
||||
address_line_1: 1 Queen Street
|
||||
suburb: Auckland Central
|
||||
city: Auckland
|
||||
state_or_region: Auckland
|
||||
postcode: "1010"
|
||||
country: NZ
|
||||
rejects:
|
||||
- set: {address_type: Castle}
|
||||
violates: address_address_type_check
|
||||
- set: {address_line_1: null}
|
||||
violates: street_address_requires_address_line_1
|
||||
- set: {country: null}
|
||||
violates: not-null
|
||||
|
||||
# A single-entity product has no relationship fields to traverse.
|
||||
graphql: []
|
||||
|
||||
round_trip:
|
||||
table: address
|
||||
record:
|
||||
address_id: 2f4c1a3e-0001-4a7b-9c11-00000000e2e0
|
||||
address_type: PO Box
|
||||
address_line_1: PO Box 999
|
||||
city: Nelson
|
||||
postcode: "7040"
|
||||
country: NZ
|
||||
update:
|
||||
city: Richmond
|
||||
Reference in new issue
Block a user