def test_list_artifacts_for_build(self, fake_client): """ Test list artifacts for build """ artifacts = Artifacts(fake_client, "base") artifacts.list_artifacts_for_build("org_slug", "pipe_slug", "build_no", 123) url = "baseorganizations/org_slug/pipelines/pipe_slug/builds/build_no/jobs/123/artifacts/" fake_client.get.assert_called_with(url)
def test_list_artifacts_for_build(fake_client): """ Test List Artifacts for build """ artifacts = Artifacts(fake_client, "base") artifacts.list_artifacts_for_build("org_slug", "pipe_slug", "build_no") url = "base/organizations/org_slug/pipelines/pipe_slug/builds/build_no/artifacts/" fake_client.get.assert_called_with(url, query_params={"page": 0}, with_pagination=False)