Skip to content
Snippets Groups Projects
Verified Commit 27dc4c62 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

TEST: More extensive test data.

parent 91529537
No related branches found
No related tags found
Loading
Pipeline #48132 passed
No preview for this file type
...@@ -9,10 +9,10 @@ Training: ...@@ -9,10 +9,10 @@ Training:
recommended_properties: recommended_properties:
date: date:
datatype: DATETIME datatype: DATETIME
description: 'date' description: 'The date of the training.'
url: url:
datatype: TEXT datatype: TEXT
description: 'url' description: 'The URL'
subjects: subjects:
datatype: LIST<TEXT> datatype: LIST<TEXT>
coach: coach:
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
"description": "The name of the Record to be created" "description": "The name of the Record to be created"
}, },
"date": { "date": {
"description": "date", "description": "The date of the training.",
"anyOf": [ "anyOf": [
{ {
"type": "string", "type": "string",
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
}, },
"url": { "url": {
"type": "string", "type": "string",
"description": "url" "description": "The URL"
}, },
"subjects": { "subjects": {
"type": "array", "type": "array",
......
...@@ -116,8 +116,8 @@ def test_generate_sheets_from_schema(): ...@@ -116,8 +116,8 @@ def test_generate_sheets_from_schema():
foreign_keys={'Training': {"__this__": ['date', 'url']}}) foreign_keys={'Training': {"__this__": ['date', 'url']}})
assert "Training" in sdef assert "Training" in sdef
tdef = sdef['Training'] tdef = sdef['Training']
assert tdef['date'] == (ColumnType.SCALAR, 'date', ["Training", 'date']) assert tdef['date'] == (ColumnType.SCALAR, 'The date of the training.', ["Training", 'date'])
assert tdef['url'] == (ColumnType.SCALAR, 'url', ["Training", 'url']) assert tdef['url'] == (ColumnType.SCALAR, 'The URL', ["Training", 'url'])
assert tdef['supervisor.family_name'] == (ColumnType.SCALAR, None, ["Training", 'supervisor', assert tdef['supervisor.family_name'] == (ColumnType.SCALAR, None, ["Training", 'supervisor',
'family_name']) 'family_name'])
assert tdef['supervisor.given_name'] == (ColumnType.SCALAR, None, ["Training", 'supervisor', assert tdef['supervisor.given_name'] == (ColumnType.SCALAR, None, ["Training", 'supervisor',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment