use super::super::Error;
use super::route;
use std::io::Cursor;
#[test]
fn python_routed_to_inner_module_and_its_errors_carried_through() {
let input = serde_json::json!({ "program": "print(1)" }).to_string();
let mut stdin = Cursor::new(input.into_bytes());
let mut stdout = Vec::new();
let mut stderr = Vec::new();
let err = route("python", &mut stdin, &mut stdout, &mut stderr).unwrap_err();
assert!(matches!(err, Error::Python(_)), "{err}");
assert!(err.to_string().contains("LITANY_TOOL_ID"), "{err}");
}