Add comprehensive tests for hackathon service functionality

- Implemented tests for creating, retrieving, updating, and deleting hackathons.
- Added validation tests for hackathon creation and updates.
- Included tests for hackathon events and timelines, ensuring proper handling of edge cases.
- Created tests for hackathon submissions, including validation and submission status updates.
- Organized tests into a dedicated module for better structure and maintainability.
This commit is contained in:
MythEclipse
2025-09-27 13:01:08 +07:00
parent ef1d63e893
commit e530eba60d
25 changed files with 5213 additions and 22 deletions
+28
View File
@@ -0,0 +1,28 @@
pub mod v1;
// Re-export core entity types used across the hackathon system
pub use imphnen_entities::{
CountResult,
Error,
MessageResponseDto,
MetaRequestDto,
MetaResponseDto,
ResponseListSuccessDto,
ResponseSuccessDto,
};
// Error DTO for hackathon module
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize, utoipa::ToSchema)]
pub struct ErrorDto {
pub status: u16,
pub message: String,
pub details: Option<serde_json::Value>,
}
// Explicitly import only what we need from libs and utils to avoid pollution
pub use imphnen_libs::{
AppState,
};
// Re-export public v1 API
pub use v1::hackathon::hackathon_controller::hackathon_routes;