aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/util/forgejo_test.rs
blob: 2cae2acf60c77629ace5a699947afd2cd368e4bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! ref: composer/tests/Composer/Test/Util/ForgejoTest.php

// Both cases construct Forgejo with a mocked IO/Config/JsonConfigSource and a mocked
// HttpDownloader to drive the username/password authentication flow. Mocking is not
// available, and a real HttpDownloader reaches curl_multi_init (todo!()).

#[test]
#[ignore = "mocks IO/Config/HttpDownloader for the auth flow; a real HttpDownloader reaches curl_multi_init (todo!())"]
fn test_username_password_authentication_flow() {
    todo!()
}

#[test]
#[ignore = "mocks IO/Config/HttpDownloader for the auth flow; a real HttpDownloader reaches curl_multi_init (todo!())"]
fn test_username_password_failure() {
    todo!()
}