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
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
def _make_performance_config(domain): config = PerformanceConfiguration(domain=domain, recipient_id=uuid.uuid4().hex, template='test') config.save() return config