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 2222 "classifications" : []
2323 }, {
2424 "schemaNodeId" :
25- None ,
25+ None ,
2626 "featureSchemaId" :
27- None ,
27+ None ,
2828 "required" :
29- False ,
29+ False ,
3030 "name" :
31- "bbox" ,
31+ "bbox" ,
3232 "color" :
33- "#FF0000" ,
33+ "#FF0000" ,
3434 "tool" :
35- "rectangle" ,
35+ "rectangle" ,
3636 "classifications" : [{
3737 "schemaNodeId" :
38- None ,
38+ None ,
3939 "featureSchemaId" :
40- None ,
40+ None ,
4141 "required" :
42- True ,
42+ True ,
4343 "instructions" :
44- "nested classification" ,
44+ "nested classification" ,
4545 "name" :
46- "nested classification" ,
46+ "nested classification" ,
4747 "type" :
48- "radio" ,
48+ "radio" ,
4949 "options" : [{
5050 "schemaNodeId" :
51- None ,
51+ None ,
5252 "featureSchemaId" :
53- None ,
53+ None ,
5454 "label" :
55- "first" ,
55+ "first" ,
5656 "value" :
57- "first" ,
57+ "first" ,
5858 "options" : [{
5959 "schemaNodeId" : None ,
6060 "featureSchemaId" : None ,
107107 }],
108108 "classifications" : [{
109109 "schemaNodeId" :
110- None ,
110+ None ,
111111 "featureSchemaId" :
112- None ,
112+ None ,
113113 "required" :
114- True ,
114+ True ,
115115 "instructions" :
116- "This is a question." ,
116+ "This is a question." ,
117117 "name" :
118- "This is a question." ,
118+ "This is a question." ,
119119 "type" :
120- "radio" ,
120+ "radio" ,
121121 "options" : [{
122122 "schemaNodeId" : None ,
123123 "featureSchemaId" : None ,
@@ -210,8 +210,7 @@ def test_add_ontology_classification() -> None:
210210
211211def test_tool_add_classification () -> None :
212212 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" )
215214 t .add_classification (c )
216215 assert t .classifications == [c ]
217216
@@ -234,8 +233,7 @@ def test_classification_add_option() -> None:
234233
235234def test_option_add_option () -> None :
236235 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" )
239237 o .add_option (c )
240238 assert o .options == [c ]
241239
You can’t perform that action at this time.
0 commit comments