Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(web_chat): wire citations tests as a submodule

Steven Enamakel07b7d1520818
diff --git a/crates/openhuman-core/src/web_chat/citations.rs b/crates/openhuman-core/src/web_chat/citations.rs
index 8b8f09ec2b..1ce3867cf2 100644
--- a/crates/openhuman-core/src/web_chat/citations.rs
+++ b/crates/openhuman-core/src/web_chat/citations.rs
@@ -129,3 +129,7 @@ pub(crate) fn take_turn_citations(ctx: &DispatchCtx, thread_id: &str) -> Vec<Tur
.remove(thread_id)
.unwrap_or_default()
}
+
+#[cfg(test)]
+#[path = "citations_tests.rs"]
+mod tests;
diff --git a/crates/openhuman-core/src/web_chat/mod.rs b/crates/openhuman-core/src/web_chat/mod.rs
index 5cbbe4725d..79c562ae3b 100644
--- a/crates/openhuman-core/src/web_chat/mod.rs
+++ b/crates/openhuman-core/src/web_chat/mod.rs
@@ -28,8 +28,6 @@
mod channel_event;
pub(crate) mod citations;
-#[cfg(test)]
-mod citations_tests;
mod egress_surface;
mod event_bus;
mod event_bus_channel;