schema_salad.tests.test_subtypes
Confirm subtypes.
Module Contents
Functions
|
Test is_subtype() function. |
Confirm conversion of SALAD style names to avro when overriding. |
|
Confirm subtype error when overriding incorrectly. |
Attributes
- schema_salad.tests.test_subtypes.types = [(['int', 'float', 'double'], 'int', True), (['int', 'float', 'double'], ['int'], True),...
- schema_salad.tests.test_subtypes.test_subtypes(old, new, result)
Test is_subtype() function.
- Parameters:
old (schema_salad.avro.schema.PropType) –
new (schema_salad.avro.schema.PropType) –
result (bool) –
- Return type:
None
- schema_salad.tests.test_subtypes.test_avro_loading_subtype()
Confirm conversion of SALAD style names to avro when overriding.
- Return type:
None
- schema_salad.tests.test_subtypes.test_avro_loading_subtype_bad()
Confirm subtype error when overriding incorrectly.
- Return type:
None