You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// `value_from_py_object` and `value_to_py_object` are functions internal to this module. `Pythonized` is the API exposed by the module. Ideally we want to test on the behavior of the public API.
235
234
#[cfg(test)]
236
235
mod tests {
237
-
usesuper::*;// To bring Pythonized into scope
236
+
usesuper::*;
238
237
usecrate::base::schema;
239
238
usecrate::base::value;
240
-
usecrate::base::value::ScopeValue;// Changed import from GeneralValueSpec
239
+
usecrate::base::value::ScopeValue;
241
240
use pyo3::Python;
242
241
use std::collections::BTreeMap;
243
242
use std::sync::Arc;
@@ -251,9 +250,6 @@ mod tests {
251
250
});
252
251
253
252
println!("Python object: {:?}", py_object);
254
-
// Convert Python object back to Rust value
255
-
// let roundtripped_value = Pythonized::<value::Value>::extract_bound(&py_object)
256
-
// .unwrap_or_else(|e| panic!("Failed to convert Python object back to Rust value: {:?}", e));
0 commit comments