summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2024-03-15 20:29:21 +0100
committerCyborus <cyborus@cyborus.xyz>2024-03-15 20:29:21 +0100
commitc2306c9709a5333765955a0d008c8dac52b9087c (patch)
tree0da93da800ae0ec6b15f7ceaeb8d63b66ed52872 /tests
parentremove debug (diff)
downloadforgejo-api-c2306c9709a5333765955a0d008c8dac52b9087c.tar.xz
forgejo-api-c2306c9709a5333765955a0d008c8dac52b9087c.zip
update tests
Diffstat (limited to 'tests')
-rw-r--r--tests/ci_test.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ci_test.rs b/tests/ci_test.rs
index 1421300..23724d5 100644
--- a/tests/ci_test.rs
+++ b/tests/ci_test.rs
@@ -104,7 +104,7 @@ async fn repo() {
private: Some(false),
readme: None,
template: Some(false),
- trust_model: Some("default".into()),
+ trust_model: Some(CreateRepoOptionTrustModel::Default),
};
let remote_repo = api.create_current_user_repo(repo_opt).await.unwrap();
assert!(
@@ -179,7 +179,7 @@ async fn repo() {
.await
.unwrap();
let merge_opt = MergePullRequestOption {
- r#do: "merge".into(),
+ r#do: MergePullRequestOptionDo::Merge,
merge_commit_id: None,
merge_message_field: None,
merge_title_field: None,
@@ -372,7 +372,7 @@ async fn admin() {
location: None,
repo_admin_change_team_access: None,
username: "test-org".into(),
- visibility: Some("public".into()),
+ visibility: Some(CreateOrgOptionVisibility::Public),
website: None,
};
let _ = api
@@ -443,7 +443,7 @@ async fn admin() {
.into(),
},
events: Some(Vec::new()),
- r#type: "gitea".into(),
+ r#type: CreateHookOptionType::Gitea,
};
// yarr har har me matey this is me hook
let hook = api