mirror of
https://gitlab.com/keys.openpgp.org/hagrid.git
synced 2025-10-06 00:23:08 +02:00
Declare tests in hagrid::web module with #[rstest] instea of #[test].
This should allow to use all the rstest goodies with these tests.
This commit is contained in:
committed by
Vincent Breitmoser
parent
b11f7dc7b3
commit
d32b48885e
@@ -432,7 +432,7 @@ pub mod tests {
|
||||
db.check_consistency().unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[rstest]
|
||||
fn about_translation() {
|
||||
let (_tmpdir, client) = client().expect("valid rocket instance");
|
||||
|
||||
@@ -447,7 +447,7 @@ pub mod tests {
|
||||
assert!(response.into_string().unwrap().contains("Hagrid"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[rstest]
|
||||
fn basics() {
|
||||
let (_tmpdir, client) = client().expect("valid rocket instance");
|
||||
|
||||
@@ -500,7 +500,7 @@ pub mod tests {
|
||||
assert_consistency(client.rocket());
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[rstest]
|
||||
fn maintenance() {
|
||||
let (tmpdir, client) = client().unwrap();
|
||||
|
||||
@@ -617,7 +617,7 @@ pub mod tests {
|
||||
assert_consistency(client.rocket());
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[rstest]
|
||||
fn upload_verify_lang() {
|
||||
let (tmpdir, client) = client().unwrap();
|
||||
let filemail_into = tmpdir.path().join("filemail");
|
||||
@@ -742,7 +742,7 @@ pub mod tests {
|
||||
assert_consistency(client.rocket());
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[rstest]
|
||||
fn upload_no_key() {
|
||||
let (_tmpdir, client) = client().unwrap();
|
||||
let response = vks_publish_submit_response(&client, b"");
|
||||
@@ -786,7 +786,7 @@ pub mod tests {
|
||||
assert_consistency(client.rocket());
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[rstest]
|
||||
fn upload_curl_shortcut() {
|
||||
let (_tmpdir, client) = client().unwrap();
|
||||
|
||||
@@ -801,7 +801,7 @@ pub mod tests {
|
||||
check_null_responses_by_email(&client, "foo@invalid.example.com");
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[rstest]
|
||||
fn search_invalid() {
|
||||
let (_tmpdir, client) = client().unwrap();
|
||||
|
||||
@@ -830,7 +830,7 @@ pub mod tests {
|
||||
"not supported",
|
||||
);
|
||||
}
|
||||
#[test]
|
||||
#[rstest]
|
||||
fn wkd_policy() {
|
||||
let (_tmpdir, client) = client().unwrap();
|
||||
|
||||
|
Reference in New Issue
Block a user