Exemple #1
0
def mock_schema_min():
    """Minimum Schema fixture.
    """

    test_schema = schema_factory(schema_name='MinTest', attr=StringNode())

    return test_schema
Exemple #2
0
def mock_schema():
    """Schema fixture.
    """
    test_schema = schema_factory(schema_name='test',
                                 number=IntegerNode(default=0),
                                 name=StringNode(required=True),
                                 scores=FloatNode(required=True, array=True))

    return test_schema
Exemple #3
0
def mock_schema_min():
    """Minimum Schema fixture.
    """

    test_schema = schema_factory(
        schema_name='MinTest',
        attr=StringNode()
    )

    return test_schema
Exemple #4
0
def mock_schema():
    """Schema fixture.
    """
    test_schema = schema_factory(
        schema_name='test',
        number=IntegerNode(default=0),
        name=StringNode(required=True),
        scores=FloatNode(required=True, array=True)
    )

    return test_schema