forked from CenterForOpenScience/osf.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault_test_schema.py
93 lines (93 loc) · 3.35 KB
/
default_test_schema.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
DEFAULT_TEST_SCHEMA_NAME = '***OSF Internal Test Schema***'
TEST_SCHEMA_SINGLE_SELECT_OPTIONS = ['A', 'B', 'A and B', 'None of the Above']
TEST_SCHEME_MULTI_SELECT_OPTIONS = ['D', 'E', 'F', 'G']
DEFAULT_TEST_SCHEMA = {
'name': DEFAULT_TEST_SCHEMA_NAME,
'version': 1,
'description': 'Test Registration Schema for internal use only',
'atomicSchema': True,
'blocks': [
{
'block_type': 'page-heading',
'display_text': 'Text Inputs',
}, {
'block_type': 'question-label',
'display_text': 'Short text input',
'help_text': 'This is meant for storing ~a single line of text',
}, {
'block_type': 'short-text-input',
'registration_response_key': 'q1',
'required': True,
}, {
'block_type': 'question-label',
'display_text': 'Long text input',
'help_text': 'This is meant for storing a paragraph',
}, {
'block_type': 'long-text-input',
'registration_response_key': 'q2',
'required': True,
}, {
'block_type': 'page-heading',
'display_text': 'Select Inputs',
}, {
'block_type': 'question-label',
'display_text': 'Single-select input',
'help_text': 'This allows the user to select one entry from a list of options',
}, {
'block_type': 'single-select-input',
'registration_response_key': 'q3',
'required': True,
}, {
'block_type': 'select-input-option',
'display_text': 'A',
}, {
'block_type': 'select-input-option',
'display_text': 'B',
}, {
'block_type': 'select-input-option',
'display_text': 'A and B',
}, {
'block_type': 'select-input-option',
'display_text': 'None of the Above',
}, {
'block_type': 'question-label',
'display_text': 'Multi-select input',
'help_text': 'This allows the user to select several entires from a list of options',
}, {
'block_type': 'multi-select-input',
'registration_response_key': 'q4',
'required': True
}, {
'block_type': 'select-input-option',
'display_text': 'D',
}, {
'block_type': 'select-input-option',
'display_text': 'E',
}, {
'block_type': 'select-input-option',
'display_text': 'F',
}, {
'block_type': 'select-input-option',
'display_text': 'G',
}, {
'block_type': 'page-heading',
'display_text': 'OSF Inputs',
}, {
'block_type': 'question-label',
'display_text': 'Contributors input',
'help_text': 'This allows the user to specify one or more OSF Users',
}, {
'block_type': 'contributors-input',
'registration_response_key': 'q5',
'required': False
}, {
'block_type': 'question-label',
'display_text': 'File input',
'help_text': 'This allows the user to attach a file to answer the question.'
}, {
'block_type': 'file-input',
'registration_response_key': 'q6',
'required': False,
}
]
}