From 6d7ef2e836960494a3bad6f32a5c65de574c082a Mon Sep 17 00:00:00 2001 From: philipp Date: Tue, 24 Oct 2023 14:58:32 +0200 Subject: [PATCH] fix ci.. --- src/tera/misc.rs | 22 ---------------------- 1 file changed, 22 deletions(-) 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!();