mirror of
https://gitlab.com/keys.openpgp.org/hagrid.git
synced 2025-10-05 16:12:44 +02:00
Format code.
This commit is contained in:
committed by
Vincent Breitmoser
parent
29ac3534c1
commit
8795469b52
@@ -907,8 +907,11 @@ pub mod tests {
|
||||
base_uri: &str,
|
||||
) -> String {
|
||||
let response = client.put("/").body(data).dispatch();
|
||||
|
||||
assert_eq!(response.status(), Status::Ok);
|
||||
|
||||
let response_body = response.into_string().unwrap();
|
||||
|
||||
assert!(response_body.contains("Key successfully uploaded"));
|
||||
|
||||
let pattern = format!("{}/upload/([^ \t\n]*)", base_uri);
|
||||
@@ -919,6 +922,7 @@ pub mod tests {
|
||||
.get(1)
|
||||
.unwrap()
|
||||
.as_bytes();
|
||||
|
||||
String::from_utf8_lossy(capture_content).to_string()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user