- 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.
13 lines
253 B
Rust
13 lines
253 B
Rust
use imphnen_gateway::gateway_service;
|
|
use imphnen_libs::axum_init;
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
tracing_subscriber::fmt::init();
|
|
|
|
axum_init(|surrealdb_ws, surrealdb_mem| async {
|
|
gateway_service(surrealdb_ws, surrealdb_mem).await
|
|
})
|
|
.await;
|
|
}
|