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:
2026-10-25 22:52:41 +01:00
parent 07c8b011d8
commit a1c3f7760d
12 changed files with 296 additions and 297 deletions

View File

@@ -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 }

View File

@@ -156,6 +156,3 @@ where
}
}
}
#[cfg(test)]
pub(crate) mod tests;

View File

@@ -310,7 +310,3 @@ pub struct DismissWatchForm {
#[serde(rename = "_csrf", default)]
pub csrf_token: String,
}
#[cfg(test)]
#[path = "forms_tests.rs"]
mod tests;

View File

@@ -8,6 +8,3 @@ pub mod openapi;
pub mod router;
pub mod state;
mod support;
#[cfg(test)]
mod tests;

View File

@@ -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 {