コード例 #1
0
ファイル: test_schedule.py プロジェクト: nnestle/commcare-hq
def _make_performance_config(
    domain, interval, hour=DEFAULT_HOUR, day_of_week=DEFAULT_WEEK_DAY, day_of_month=DEFAULT_MONTH_DAY
):
    config = PerformanceConfiguration(
        domain=domain,
        recipient_id=uuid.uuid4().hex,
        template="test",
        schedule=ScheduleConfiguration(
            interval=interval, hour=hour, day_of_week=day_of_week, day_of_month=day_of_month
        ),
    )
    config.save()
    return config
コード例 #2
0
ファイル: test_schedule.py プロジェクト: xbryanc/commcare-hq
def _make_performance_config(domain, interval, hour=DEFAULT_HOUR, day_of_week=DEFAULT_WEEK_DAY,
                             day_of_month=DEFAULT_MONTH_DAY):
    config = PerformanceConfiguration(
        domain=domain,
        recipient_id=uuid.uuid4().hex,
        template='test',
        schedule=ScheduleConfiguration(
            interval=interval,
            hour=hour,
            day_of_week=day_of_week,
            day_of_month=day_of_month,
        )
    )
    config.save()
    return config
コード例 #3
0
def _make_performance_config(domain):
    config = PerformanceConfiguration(domain=domain,
                                      recipient_id=uuid.uuid4().hex,
                                      template='test')
    config.save()
    return config
コード例 #4
0
def _make_performance_config(domain):
    config = PerformanceConfiguration(domain=domain, recipient_id=uuid.uuid4().hex, template='test')
    config.save()
    return config