Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/g/o/gocept.burndown-0.2/src/gocept/burndown/tests/test_liquid.py   gocept.burndown(Download)
def test_budget_output():
    from ..liquid import WorkDay
    from ..liquid import Budget
    today = datetime.date.today()
    first_day = datetime.date(day=1, month=today.month, year=today.year)
 
    # Vergangenheit
    w0 = WorkDay(d0)
    w0.add_hours_to_project_and_person(5, 'ZEIT', 'dh')
    w0.add_hours_to_project_and_person(5, 'ZEIT', 'ws')
    w0.add_hours_to_project_and_person(2, 'VERDI', 'sw')
 
    w1 = WorkDay(d1)
 
    # aktueller Monat
    w2 = WorkDay(d2)
    w2.add_hours_to_project_and_person(2, 'HAUFE', 'ws')
    w2.add_hours_to_project_and_person(5, 'VERDI', 'sw')
    w2.add_hours_to_project_and_person(1, 'VERDI', 'dh')
 
    # Zukunft soll ignoriert werden
    w3 = WorkDay(d3)