コード例 #1
0
ファイル: test_task.py プロジェクト: threebee/evergreen.py
    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
ファイル: test_task.py プロジェクト: threebee/evergreen.py
    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"