| 3380 | |
| 3381 | #[test] |
| 3382 | fn sandbox_upload_uses_path_value_hint() { |
| 3383 | let cmd = Cli::command(); |
| 3384 | let sandbox = cmd |
| 3385 | .get_subcommands() |
| 3386 | .find(|c| c.get_name() == "sandbox") |
| 3387 | .expect("missing sandbox subcommand"); |
| 3388 | let upload = sandbox |
| 3389 | .get_subcommands() |
| 3390 | .find(|c| c.get_name() == "upload") |
| 3391 | .expect("missing sandbox upload subcommand"); |
| 3392 | let local_path = upload |
| 3393 | .get_arguments() |
| 3394 | .find(|arg| arg.get_id() == "local_path") |
| 3395 | .expect("missing local_path argument"); |
| 3396 | |
| 3397 | assert_eq!(local_path.get_value_hint(), ValueHint::AnyPath); |
| 3398 | } |
| 3399 | |
| 3400 | #[test] |
| 3401 | fn sandbox_upload_completion_suggests_local_paths() { |