From dccd4c51ba524bb2d731c8511f76b817dd8ab358 Mon Sep 17 00:00:00 2001 From: Cyborus Date: Mon, 1 Jan 2024 17:53:08 -0500 Subject: add archive tests --- tests/ci_test.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/ci_test.rs b/tests/ci_test.rs index 3d98f71..6d6077f 100644 --- a/tests/ci_test.rs +++ b/tests/ci_test.rs @@ -243,6 +243,14 @@ async fn repo(api: &forgejo_api::Forgejo) -> eyre::Result<()> { == Some(b"This is a file!"), "couldn't download attachment" ); + ensure!( + api.download_zip_archive("TestingAdmin", "test", "v1.0").await?.is_some(), + "couldn't download zip archive" + ); + ensure!( + api.download_tarball_archive("TestingAdmin", "test", "v1.0").await?.is_some(), + "couldn't download tape archive" + ); api.delete_release_attachment("TestingAdmin", "test", release.id, attachment.id) .await -- cgit v1.2.3