Skip to content

Commit

Permalink
test: ✅ add object field to test data
Browse files Browse the repository at this point in the history
So we now have included all data types except `any`
  • Loading branch information
signekb committed Feb 21, 2025
1 parent 4638ee9 commit ee6006e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/core/test_extract_resource_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
'"geometry": {"type": "Point", "coordinates": [104.0, 0.0]}, '
'"properties": {"name": "value1"}}',
],
"object": [
'{"answer_q1": "No", "answer_q2": "Yes"}',
'{"answer_q1": "Yes", "answer_q2": "Yes"}',
'{"answer_q1": "No", "answer_q2": "No"}',
],
}
)
schema_tidy_data = {
Expand All @@ -59,6 +64,7 @@
{"name": "survey_geopoint", "type": "geopoint"},
{"name": "survey_array", "type": "array"},
{"name": "survey_geojson", "type": "geojson"},
{"name": "object", "type": "object"},
]
}

Expand Down Expand Up @@ -92,6 +98,7 @@
'"geometry": {"type": "Point", "coordinates": [104.0, 0.0]}, '
'"properties": {"name": "value1"}}',
],
"object": ["{}", "", '{"answer_q1": "No"}'],
},
strict=False,
)
Expand All @@ -114,6 +121,7 @@
{"name": "survey_geopoint", "type": "string"},
{"name": "survey_array", "type": "array"},
{"name": "survey_geojson", "type": "string"},
{"name": "object", "type": "object"},
]
}

Expand Down

0 comments on commit ee6006e

Please sign in to comment.