Skip to content

Commit 8ae18d0

Browse files
committed
[#77] Multiplesheets titles tests, unflatten and flatten
1 parent 1da7843 commit 8ae18d0

File tree

3 files changed

+431
-4
lines changed

3 files changed

+431
-4
lines changed

flattentool/tests/test_input_SpreadsheetInput_unflatten.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,13 +559,34 @@ def create_schema(root_id):
559559
'title': 'B title',
560560
'type': 'object',
561561
'properties': {
562+
'id': {
563+
'title': 'Identifier',
564+
'type': 'integer',
565+
},
562566
'testC': {
563567
'title': 'C title',
564568
'type': 'integer',
565569
},
566570
'testD': {
567571
'title': 'D title',
568572
'type': 'integer',
573+
},
574+
'subField': {
575+
'title': 'Sub title',
576+
'type': 'array',
577+
'items': {
578+
'type': 'object',
579+
'properties': {
580+
'id': {
581+
'title': 'Identifier',
582+
'type': 'integer',
583+
},
584+
'testE': {
585+
'title': 'E title',
586+
'type': 'integer',
587+
},
588+
}
589+
}
569590
}
570591
}
571592
},
@@ -597,7 +618,38 @@ def create_schema(root_id):
597618
'items': {
598619
'type': 'string'
599620
}
600-
}
621+
},
622+
'testNest': {
623+
'title': 'Nest title',
624+
'type': 'array',
625+
'items': {
626+
'type': 'object',
627+
'properties': {
628+
'id': {
629+
'title': 'Identifier',
630+
'type': 'string',
631+
},
632+
'testD': {
633+
'title': 'D title',
634+
'type': 'string',
635+
},
636+
}
637+
}
638+
},
639+
'testNestObj': {
640+
'title': 'NestObj title',
641+
'type': 'object',
642+
'properties': {
643+
'id': {
644+
'title': 'Identifier',
645+
'type': 'string',
646+
},
647+
'testD': {
648+
'title': 'D title',
649+
'type': 'string',
650+
},
651+
}
652+
},
601653
}
602654
}
603655
},

0 commit comments

Comments
 (0)