Пример #1
0
def create_cp_1382_12():
    """
    Create but not save a control point, slug 666-12
    """
    cp = ControlPoint()
    cp.id = 6
    cp.number = '1382'
    cp.slug = '1382-12'
    cp.name = 'Test Inheritance 1'
    cp.color = 'O'
    cp.fy = 12
    cp.balance = Decimal(0)
    return cp
Пример #2
0
def create_cp_1382_13():
    """
    Create but not save a control point, slug 666-13.
    Needed to test inheritance from previous fiscal year.
    """
    cp = ControlPoint()
    cp.id = 7
    cp.number = '1382'
    cp.slug = '1382-13'
    cp.name = 'Test Inheritance 2'
    cp.color = 'O'
    cp.fy = 13
    cp.balance = Decimal(0)
    return cp