diff --git a/src/tera/misc.rs b/src/tera/misc.rs index 73dec27..24eb431 100644 --- a/src/tera/misc.rs +++ b/src/tera/misc.rs @@ -24,28 +24,6 @@ mod test { use crate::testdb; - #[sqlx::test] - fn test_faq() { - let db = testdb!(); - - let rocket = rocket::build().manage(db.clone()); - let rocket = crate::tera::config(rocket); - - let client = Client::tracked(rocket).await.unwrap(); - let login = client - .post("/auth") - .header(ContentType::Form) // Set the content type to form - .body("name=cox&password=cox"); // Add the form data to the request body; - login.dispatch().await; - - let req = client.get("/faq"); - let response = req.dispatch().await; - - assert_eq!(response.status(), Status::Ok); - - assert!(response.into_string().await.unwrap().contains("FAQs")); - } - #[sqlx::test] fn test_without_login() { let db = testdb!();