Ejemplo n.º 1
0
def test_cron_schedule_offset():
    obj = CronSchedule(schedule="days",
                       offset="P1D",
                       kickoff_time_input_arg="abc")
    assert obj.cron_schedule.schedule == "days"
    assert obj.cron_schedule.offset == "P1D"
    assert obj == CronSchedule.from_flyte_idl(obj.to_flyte_idl())
Ejemplo n.º 2
0
def test_cron_karg():
    obj = CronSchedule(cron_expression="* * ? * * *",
                       kickoff_time_input_arg="abc")
    assert obj.kickoff_time_input_arg == "abc"
    assert obj.cron_expression == "* * ? * * *"
    assert obj == CronSchedule.from_flyte_idl(obj.to_flyte_idl())