コード例 #1
0
 def test_download_artifact(self, fake_client):
     """
     Test download Artifact
     """
     artifacts = Artifacts(fake_client, "base")
     artifacts.download_artifact("org_slug", "pipe_slug", "build_no", 123,
                                 "artifact")
     url = "baseorganizations/org_slug/pipelines/pipe_slug/builds/build_no/jobs/123/artifacts/artifact/download/"
     fake_client.get.assert_called_with(url)
コード例 #2
0
ファイル: test_artifacts.py プロジェクト: pyasi/pybuildkite
def test_download_artifact(fake_client):
    """
    Test download Artifact
    """
    artifacts = Artifacts(fake_client, "base")
    artifacts.download_artifact("org_slug", "pipe_slug", "build_no", 123,
                                "artifact")
    url = "base/organizations/org_slug/pipelines/pipe_slug/builds/build_no/jobs/123/artifacts/artifact/download/"
    fake_client.get.assert_called_with(
        url, headers={"Accept": "application/octet-stream"}, as_stream=False)