pub use cognee_database::{
TUTORIAL_BASICS_ID, TUTORIAL_PYTHON_DEV_ID, seed_tutorials_if_first_call,
};
#[cfg(test)]
mod tests {
use super::*;
use uuid::Uuid;
#[test]
fn tutorial_ids_are_deterministic() {
let basics = Uuid::new_v5(
&Uuid::NAMESPACE_OID,
"Cognee Basics - tutorial 🧠".as_bytes(),
);
assert_eq!(
basics, TUTORIAL_BASICS_ID,
"TUTORIAL_BASICS_ID must match uuid5(NAMESPACE_OID, 'Cognee Basics - tutorial 🧠')"
);
let python_dev = Uuid::new_v5(
&Uuid::NAMESPACE_OID,
"Python Development with Cognee - tutorial 🧠".as_bytes(),
);
assert_eq!(
python_dev, TUTORIAL_PYTHON_DEV_ID,
"TUTORIAL_PYTHON_DEV_ID must match uuid5(NAMESPACE_OID, 'Python Development with Cognee - tutorial 🧠')"
);
}
}