add archive tests
This commit is contained in:
		
							parent
							
								
									d022f4f1bd
								
							
						
					
					
						commit
						dccd4c51ba
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue