test: Add more form tests

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb 2024-08-11 11:48:20 +00:00
parent 8d1e26c305
commit 6520ab62e5
Signed by: awiteb
GPG key ID: 3F6B55640AA6682F

View file

@ -110,6 +110,24 @@ mod tests {
Some(Some("token")),
Some(Some("answer"))
)]
#[case::only_token(
None,
None,
Some(("captcha_token", "token")),
None,
"application/x-www-form-urlencoded",
Some(Some("token")),
None
)]
#[case::only_answer(
None,
None,
None,
Some(("captcha_answer", "answer")),
"application/x-www-form-urlencoded",
None,
Some(Some("answer"))
)]
#[case::custom_not_found(
Some("custom_token"),
Some("custom_answer"),