File tree Expand file tree Collapse file tree 1 file changed +24
-26
lines changed Expand file tree Collapse file tree 1 file changed +24
-26
lines changed Original file line number Diff line number Diff line change 22
22
"classifications" : []
23
23
}, {
24
24
"schemaNodeId" :
25
- None ,
25
+ None ,
26
26
"featureSchemaId" :
27
- None ,
27
+ None ,
28
28
"required" :
29
- False ,
29
+ False ,
30
30
"name" :
31
- "bbox" ,
31
+ "bbox" ,
32
32
"color" :
33
- "#FF0000" ,
33
+ "#FF0000" ,
34
34
"tool" :
35
- "rectangle" ,
35
+ "rectangle" ,
36
36
"classifications" : [{
37
37
"schemaNodeId" :
38
- None ,
38
+ None ,
39
39
"featureSchemaId" :
40
- None ,
40
+ None ,
41
41
"required" :
42
- True ,
42
+ True ,
43
43
"instructions" :
44
- "nested classification" ,
44
+ "nested classification" ,
45
45
"name" :
46
- "nested classification" ,
46
+ "nested classification" ,
47
47
"type" :
48
- "radio" ,
48
+ "radio" ,
49
49
"options" : [{
50
50
"schemaNodeId" :
51
- None ,
51
+ None ,
52
52
"featureSchemaId" :
53
- None ,
53
+ None ,
54
54
"label" :
55
- "first" ,
55
+ "first" ,
56
56
"value" :
57
- "first" ,
57
+ "first" ,
58
58
"options" : [{
59
59
"schemaNodeId" : None ,
60
60
"featureSchemaId" : None ,
107
107
}],
108
108
"classifications" : [{
109
109
"schemaNodeId" :
110
- None ,
110
+ None ,
111
111
"featureSchemaId" :
112
- None ,
112
+ None ,
113
113
"required" :
114
- True ,
114
+ True ,
115
115
"instructions" :
116
- "This is a question." ,
116
+ "This is a question." ,
117
117
"name" :
118
- "This is a question." ,
118
+ "This is a question." ,
119
119
"type" :
120
- "radio" ,
120
+ "radio" ,
121
121
"options" : [{
122
122
"schemaNodeId" : None ,
123
123
"featureSchemaId" : None ,
@@ -210,8 +210,7 @@ def test_add_ontology_classification() -> None:
210
210
211
211
def test_tool_add_classification () -> None :
212
212
t = Tool (tool = Tool .Type .SEGMENTATION , name = "segmentation" )
213
- c = Classification (class_type = Classification .Type .TEXT ,
214
- instructions = "text" )
213
+ c = Classification (class_type = Classification .Type .TEXT , instructions = "text" )
215
214
t .add_classification (c )
216
215
assert t .classifications == [c ]
217
216
@@ -234,8 +233,7 @@ def test_classification_add_option() -> None:
234
233
235
234
def test_option_add_option () -> None :
236
235
o = Option (value = "option" )
237
- c = Classification (class_type = Classification .Type .TEXT ,
238
- instructions = "text" )
236
+ c = Classification (class_type = Classification .Type .TEXT , instructions = "text" )
239
237
o .add_option (c )
240
238
assert o .options == [c ]
241
239
You can’t perform that action at this time.
0 commit comments