- Implemented tests for creating, retrieving, updating, and deleting mentors in `mentor_repository_test.rs`. - Added tests for user authentication, including successful login, invalid email formats, and inactive users in `auth_login_tests.rs`. - Created a mock test environment setup in `mock_test.rs` to facilitate database operations during tests. - Updated module structure to include new test files for mentors and authentication. - Ensured cleanup of the database after tests to maintain isolation and prevent side effects.
29 lines
668 B
Rust
29 lines
668 B
Rust
pub mod bind_filter;
|
|
pub mod extract_email;
|
|
pub mod generate_date;
|
|
pub mod generate_otp;
|
|
pub mod get_id;
|
|
pub mod make_thing;
|
|
pub mod query_builder;
|
|
pub mod query_list;
|
|
pub mod response_format;
|
|
pub mod serde_helpers;
|
|
pub mod validator;
|
|
|
|
pub use bind_filter::*;
|
|
pub use extract_email::*;
|
|
pub use generate_date::*;
|
|
pub use generate_otp::*;
|
|
pub use get_id::*;
|
|
pub use imphnen_entities::*;
|
|
pub use imphnen_libs::*;
|
|
pub use make_thing::*;
|
|
pub use query_builder::*;
|
|
pub use query_list::*;
|
|
pub use response_format::*;
|
|
pub use serde_helpers::{
|
|
option_thing_or_string, serialize_option_thing, serialize_thing,
|
|
string_or_empty_string, thing_or_string,
|
|
};
|
|
pub use validator::*;
|