more test skeletons

This commit is contained in:
Joe Ardent 2023-06-03 12:36:18 -07:00
parent bad698cc19
commit 09a07f2c57

View file

@ -238,22 +238,43 @@ mod test {
const GOOD_FORM: &str = "username=test_user&displayname=Test+User&password=aaaa&pw_verify=aaaa";
// various ways to fuck up signup
const MISMATCH_PW_FORM: &str =
"username=test_user&displayname=Test+User&password=aaaa&pw_verify=bbbb";
const SHORT_PW_FORM: &str = "username=test_user&displayname=Test+User&password=a&pw_verify=a";
const LONG_USERNAME_FORM: &str = "username=test_user12345678901234567890&displayname=Test+User&
password=aaaa&pw_verify=aaaa";
#[tokio::test]
async fn post_create_user_success() {
todo!()
}
mod failure {
// various ways to fuck up signup
const MISMATCH_PW_FORM: &str =
"username=test_user&displayname=Test+User&password=aaaa&pw_verify=bbbb";
const SHORT_PW_FORM: &str =
"username=test_user&displayname=Test+User&password=a&pw_verify=a";
const LONG_USERNAME_FORM: &str =
"username=test_user12345678901234567890&displayname=Test+User&
password=aaaa&pw_verify=aaaa";
#[tokio::test]
async fn mismatch_pw() {
todo!()
}
#[tokio::test]
async fn too_short_pw() {
todo!()
}
#[tokio::test]
async fn too_long_username() {
todo!()
}
}
#[tokio::test]
async fn get_create_user() {
todo!()
}
#[tokio::test]
async fn handle_signup_success() {
todo!()
}