def test_get_executor_status_none(): resp_body = {"errorCode": "", "message": "", "details": {}} actual = publish.get_executor_status(resp_body) expected = None assert actual == expected
def test_get_executor_status_none(): resp_body = { "errorCode": "", "message": "", "details": {} } actual = publish.get_executor_status(resp_body) expected = None assert actual == expected
def test_get_executor_status_missing(): resp_body = { "errorCode": "", "message": "", "details": [{ "id": "", "bucket": "", "key": "", "status": "MISSING", "filename": "", "uploadedBy": 1, "uploadedAt": 1458001594555 }] } actual = publish.get_executor_status(resp_body) expected = publish.GraderExecutorStatus.MISSING assert actual == expected
def test_get_executor_status_missing(): resp_body = { "errorCode": "", "message": "", "details": [ { "id": "", "bucket": "", "key": "", "status": "MISSING", "filename": "", "uploadedBy": 1, "uploadedAt": 1458001594555 } ] } actual = publish.get_executor_status(resp_body) expected = publish.GraderExecutorStatus.MISSING assert actual == expected