Пример #1
0
    def test_get_execution_or_self_with_no_execution(self, sample_task):
        task = Task(sample_task, None)
        execution = task.get_execution_or_self(999)

        assert execution == task
Пример #2
0
    def test_get_execution_or_self(self, sample_task):
        task = Task(sample_task, None)
        execution = task.get_execution_or_self(0)

        assert execution.display_name == "sharding_auth_gen"