summaryrefslogtreecommitdiffstats
path: root/tests/repo.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-12-24 09:06:21 +0100
committerDaniel Baumann <daniel@debian.org>2024-12-24 09:06:21 +0100
commit66a0c52ce7ea3ca013d84eef11e49f72ad54e7d8 (patch)
treeb602b810de0753fd1d34325c4f7bc862e985308d /tests/repo.rs
parentAdding upstream version 0.4.1. (diff)
downloadforgejo-api-upstream.tar.xz
forgejo-api-upstream.zip
Adding upstream version 0.5.0.upstream/0.5.0upstream
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'tests/repo.rs')
-rw-r--r--tests/repo.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/repo.rs b/tests/repo.rs
index 3a0377c..b8e048a 100644
--- a/tests/repo.rs
+++ b/tests/repo.rs
@@ -271,7 +271,8 @@ async fn release() {
"TestingAdmin",
"release-test",
release.id.unwrap() as u64,
- b"This is a file!".to_vec(),
+ Some(b"This is a file!".to_vec()),
+ None,
RepoCreateReleaseAttachmentQuery {
name: Some("test.txt".into()),
},
@@ -390,7 +391,7 @@ async fn team_pr_review_request() {
.repo_get_pull_request("team-review-org", "team-pr-review", 1)
.await
.expect("couldn't get pr");
- assert_eq!(pr.requested_reviewers, Some(Vec::new()));
+ assert_eq!(pr.requested_reviewers, None);
}
#[tokio::test]