()
| 7106 | |
| 7107 | #[test] |
| 7108 | fn local_workspace_backend_maps_to_rust_session_options() { |
| 7109 | pyo3::prepare_freethreaded_python(); |
| 7110 | let opts = Python::with_gil(|py| { |
| 7111 | let backend = Py::new( |
| 7112 | py, |
| 7113 | PyLocalWorkspaceBackend { |
| 7114 | root: ".".to_string(), |
| 7115 | }, |
| 7116 | ) |
| 7117 | .unwrap(); |
| 7118 | let mut session_options = PySessionOptions::new(); |
| 7119 | session_options.workspace_backend = Some(backend.into_any()); |
| 7120 | build_rust_session_options(session_options) |
| 7121 | }) |
| 7122 | .unwrap(); |
| 7123 | |
| 7124 | assert!(opts.workspace_services.is_some()); |
| 7125 | } |
| 7126 | |
| 7127 | #[test] |
| 7128 | fn s3_workspace_backend_maps_to_rust_session_options() { |
nothing calls this directly
no test coverage detected