- 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.
22 lines
472 B
TOML
22 lines
472 B
TOML
[package]
|
|
name = "imphnen-utils"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
imphnen-libs.workspace = true
|
|
imphnen-entities.workspace = true
|
|
surrealdb.workspace = true
|
|
axum.workspace = true
|
|
chrono.workspace = true
|
|
rand.workspace = true
|
|
anyhow.workspace = true
|
|
axum-test.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
validator.workspace = true
|
|
strum.workspace = true
|
|
strum_macros.workspace = true
|
|
uuid.workspace = true
|
|
tracing.workspace = true
|