示例#1
0
def wrong_nulls_schema():
    catalog = Catalog()
    arr_schema = [['letter', 'string', Nullable(False)],
                  ['number', 'bigint', Nullable(False)]]
    return Schema(arr_schema, catalog)
示例#2
0
        }
    },
    'priceplan_code': {
        'description': 'Ignatius code of the priceplan',  # noqa 501
        'example': {
            'fn': cv.priceplan_code
        }
    },
    'priceplan_price': {
        'description': 'Ignatius price of the priceplan',  # noqa 501
        'example': {
            'fn': cv.priceplan_price
        }
    },
    'status': {
        'description':
        'Ignatius client status. 1 is active. 2 is inactive. 4 is discontinued.',  # noqa 501
        'example': {
            'static': 0
        }
    },
    'customerid': {
        'description': 'Ignatius client id',  # noqa 501
        'example': {
            'fn': cv.customer_id
        }
    }
}

catalog = Catalog(FIELD_CONFS)
示例#3
0
def one_field_schema():
    catalog = Catalog()
    arr_schema = [['letter', 'string']]
    return Schema(arr_schema, catalog)
示例#4
0
def wrong_fields_schema():
    catalog = Catalog()
    arr_schema = [['notletter', 'string'], ['notnumber', 'bigint']]
    return Schema(arr_schema, catalog)
示例#5
0
def wrong_types_schema():
    catalog = Catalog()
    arr_schema = [['letter', 'float'], ['number', 'timestamp']]
    return Schema(arr_schema, catalog)
示例#6
0
def default_schema():
    catalog = Catalog()
    arr_schema = [['letter', 'string'], ['number', 'bigint']]
    return Schema(arr_schema, catalog)
示例#7
0
from birgitta.fields.catalog import Catalog

from ...schema.fixtures.values import chronicle as cv

catalog = Catalog()
catalog.add_field('groupid',
                  example=cv.groupid(),
                  description='Chronicle group id')
catalog.add_field('accountid',
                  example=cv.accountid(),
                  description='Chronicle account id')
catalog.add_field('chronicle_account_id',
                  example=cv.accountid(),
                  description='Chronicle account id')
catalog.add_field('cellphone',
                  example=cv.cellphone(),
                  description='Chronicle phone number')
catalog.add_field('enddate_yyyymmdd',
                  example=cv.enddate_yyyymmdd(),
                  description='Chronicle contract end date.')
catalog.add_field('startdate_yyyymmdd',
                  example=cv.startdate_yyyymmdd(),
                  description='Chronicle contract start date.')
catalog.add_field('priceplan_code',
                  example=cv.priceplan_code(),
                  description='Chronicle code of the priceplan')
catalog.add_field('priceplan_price',
                  example=cv.priceplan_price(),
                  description='Chronicle price of the priceplan')
catalog.add_field(
    'status',