feat(test): add ability to use test env without schedule

This commit is contained in:
2025-05-25 15:48:10 +04:00
parent fceffb900d
commit 234055eaeb
4 changed files with 39 additions and 13 deletions

View File

@@ -150,7 +150,7 @@ mod tests {
use std::fmt::Write;
async fn sign_in_client(data: Request) -> ServiceResponse {
let app = test_app(test_app_state().await, sign_in).await;
let app = test_app(test_app_state(Default::default()).await, sign_in).await;
let req = test::TestRequest::with_uri("/sign-in")
.method(Method::POST)

View File

@@ -255,7 +255,7 @@ mod tests {
}
async fn sign_up_client(data: SignUpPartial) -> ServiceResponse {
let app = test_app(test_app_state().await, sign_up).await;
let app = test_app(test_app_state(Default::default()).await, sign_up).await;
let req = test::TestRequest::with_uri("/sign-up")
.method(Method::POST)

View File

@@ -2,9 +2,9 @@ mod cache_status;
mod group;
mod group_names;
mod schedule;
mod schema;
mod teacher;
mod teacher_names;
mod schema;
mod update_download_url;
pub use cache_status::*;