test: move http-axum tests to tests/
Drop bootstrap dev-dep. Extractor + api handler + app-context tests (need full AppState via build_deps) -> bootstrap/tests/http_handlers/. forms tests -> http-axum/tests/log_review_form_test.rs. Federation collection tests now go through public federation::html_routes(). Kept inline (private fns): api/social social_actor_to_dto (4), federation/blocklist_api social_actor_to_blocked_dto (1), html/social social_actor_to_template (1), router slow_down/api_governor (2).
This commit is contained in:
@@ -43,4 +43,3 @@ bytes = { workspace = true }
|
||||
futures = { workspace = true }
|
||||
tower = { version = "0.5", features = ["util"] }
|
||||
domain = { workspace = true, features = ["test-helpers"] }
|
||||
bootstrap = { workspace = true }
|
||||
|
||||
@@ -156,6 +156,3 @@ where
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub(crate) mod tests;
|
||||
|
||||
@@ -310,7 +310,3 @@ pub struct DismissWatchForm {
|
||||
#[serde(rename = "_csrf", default)]
|
||||
pub csrf_token: String,
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "forms_tests.rs"]
|
||||
mod tests;
|
||||
|
||||
@@ -8,6 +8,3 @@ pub mod openapi;
|
||||
pub mod router;
|
||||
pub mod state;
|
||||
mod support;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
use super::*;
|
||||
use api_types::{DiaryQueryParams, LogReviewRequest};
|
||||
use http_axum::html::forms::{LogReviewData, LogReviewForm, to_diary_query};
|
||||
|
||||
fn make_form(watched_at: &str) -> LogReviewForm {
|
||||
LogReviewForm {
|
||||
|
||||
Reference in New Issue
Block a user