(
context: &mut TestContext,
filename: &str,
content: B,
)
| 670 | } |
| 671 | |
| 672 | async fn do_get_and_patch_file_test<B: Into<Vec<u8>>>( |
| 673 | context: &mut TestContext, |
| 674 | filename: &str, |
| 675 | content: B, |
| 676 | ) { |
| 677 | let username = context.do_login(1).await; |
| 678 | |
| 679 | let content = content.into(); |
| 680 | context.service.patch_file_content(&username, filename, content.clone()).await.unwrap(); |
| 681 | assert_eq!(content, context.service.get_file(&username, filename).await.unwrap()); |
| 682 | } |
| 683 | |
| 684 | #[test] |
| 685 | #[ignore = "Requires environment configuration and is expensive"] |
no test coverage detected