Skip to content

Commit 8202256

Browse files
committed
Forgot to add changed metadata_test.py file (Table component)
1 parent c64bc6d commit 8202256

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/development/metadata_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66

7-
schema = {'optionalArray': {'type': 'list'}, 'optionalBool': {'type': 'boolean'}, 'optionalFunc': {}, 'optionalNumber': {'type': 'number'}, 'optionalObject': {'type': 'dict'}, 'optionalString': {'type': 'string'}, 'optionalSymbol': {}, 'optionalNode': {'anyof': [{'type': 'component'}, {'type': 'boolean'}, {'type': 'number'}, {'type': 'string'}, {'type': 'list', 'schema': {'type': ('component', 'boolean', 'number', 'string')}}]}, 'optionalElement': {'type': 'component'}, 'optionalMessage': {}, 'optionalEnum': {'allowed': ['News', 'Photos', '1', 1, 1.0, '2', 2, 2.0], 'type': ('string', 'number')}, 'optionalUnion': {'anyof': [{'type': 'string'}, {'type': 'number'}, {}]}, 'optionalArrayOf': {'type': 'list', 'schema': {'type': 'number', 'nullable': False}}, 'optionalObjectOf': {'type': 'dict', 'nullable': False, 'valueschema': {'type': 'number'}}, 'optionalObjectWithShapeAndNestedDescription': {'type': 'dict', 'allow_unknown': False, 'nullable': False, 'schema': {'color': {'type': 'string'}, 'fontSize': {'type': 'number'}, 'figure': {'type': 'dict', 'allow_unknown': False, 'nullable': False, 'schema': {'data': {'type': 'list', 'schema': {'type': 'dict', 'nullable': False}}, 'layout': {'type': 'dict'}}}}}, 'optionalAny': {'type': ('boolean', 'number', 'string', 'dict', 'list')}, 'customProp': {}, 'customArrayProp': {'type': 'list', 'schema': {'nullable': False}}, 'children': {'anyof': [{'type': 'string'}, {'type': 'number'}, {'type': 'boolean'}, {'type': 'component'}, {'allowed': [None], 'type': ('string', 'number'), 'nullable': True}, {'type': 'list', 'schema': {'anyof': [{'type': 'string'}, {'type': 'number'}, {'type': 'boolean'}, {'type': 'component'}, {'allowed': [None], 'type': ('string', 'number'), 'nullable': True}], 'nullable': True}}], 'nullable': True}, 'in': {'type': 'string'}, 'id': {'type': 'string'}, 'dashEvents': {'allowed': ['restyle', 'relayout', 'click'], 'type': ('string', 'number')}}
7+
schema = {'customArrayProp': {'type': 'list', 'schema': {'nullable': False}}, 'optionalObjectWithShapeAndNestedDescription': {'nullable': False, 'type': 'dict', 'allow_unknown': False, 'schema': {'color': {'type': 'string'}, 'fontSize': {'type': 'number'}, 'figure': {'schema': {'layout': {'type': 'dict'}, 'data': {'type': 'list', 'schema': {'type': 'dict', 'nullable': False}}}, 'type': 'dict', 'allow_unknown': False, 'nullable': False}}}, 'optionalBool': {'type': 'boolean'}, 'optionalFunc': {}, 'optionalSymbol': {}, 'in': {'type': 'string'}, 'customProp': {}, 'children': {'anyof': [{'type': 'string'}, {'type': 'number'}, {'type': 'boolean'}, {'type': 'component'}, {'nullable': True, 'type': ('string', 'number'), 'allowed': [None]}, {'type': 'list', 'schema': {'anyof': [{'type': 'string'}, {'type': 'number'}, {'type': 'boolean'}, {'type': 'component'}, {'nullable': True, 'type': ('string', 'number'), 'allowed': [None]}], 'nullable': True}}], 'nullable': True}, 'optionalMessage': {}, 'optionalNumber': {'type': 'number'}, 'optionalObject': {'type': 'dict'}, 'dashEvents': {'type': ('string', 'number'), 'allowed': ['restyle', 'relayout', 'click']}, 'id': {'type': 'string'}, 'optionalString': {'type': 'string'}, 'optionalElement': {'type': 'component'}, 'optionalArray': {'type': 'list'}, 'optionalNode': {'anyof': [{'type': 'component'}, {'type': 'boolean'}, {'type': 'number'}, {'type': 'string'}, {'type': 'list', 'schema': {'type': ('component', 'boolean', 'number', 'string')}}]}, 'optionalObjectOf': {'type': 'dict', 'valueschema': {'type': 'number'}, 'nullable': False}, 'optionalEnum': {'type': ('string', 'number'), 'allowed': ['News', 'Photos', '1', 1, 1.0, '2', 2, 2.0, False, True]}, 'optionalArrayOf': {'type': 'list', 'schema': {'type': 'number', 'nullable': False}}, 'optionalUnion': {'anyof': [{'type': 'string'}, {'type': 'number'}, {}]}, 'optionalAny': {'type': ('boolean', 'number', 'string', 'dict', 'list')}}
88

99
class Table(Component):
1010
"""A Table component.
@@ -20,7 +20,7 @@ class Table(Component):
2020
- optionalString (string; optional)
2121
- optionalNode (a list of or a singular dash component, string or number; optional)
2222
- optionalElement (dash component; optional)
23-
- optionalEnum (a value equal to: 'News', 'Photos', 1, 2; optional)
23+
- optionalEnum (a value equal to: 'News', 'Photos', 1, 2, false, true; optional)
2424
- optionalUnion (string | number; optional)
2525
- optionalArrayOf (list; optional)
2626
- optionalObjectOf (dict with strings as keys and values of type number; optional)

0 commit comments

Comments
 (0)