()
| 4390 | |
| 4391 | #[test] |
| 4392 | fn policy_get_base_output_parses() { |
| 4393 | let cli = Cli::try_parse_from(["openshell", "policy", "get", "my-sandbox", "--base"]) |
| 4394 | .expect("policy get --base should parse"); |
| 4395 | |
| 4396 | match cli.command { |
| 4397 | Some(Commands::Policy { |
| 4398 | command: |
| 4399 | Some(PolicyCommands::Get { |
| 4400 | name, full, base, .. |
| 4401 | }), |
| 4402 | }) => { |
| 4403 | assert_eq!(name.as_deref(), Some("my-sandbox")); |
| 4404 | assert!(!full); |
| 4405 | assert!(base); |
| 4406 | } |
| 4407 | other => panic!("expected policy get command, got: {other:?}"), |
| 4408 | } |
| 4409 | } |
| 4410 | |
| 4411 | #[test] |
| 4412 | fn policy_delete_global_parses() { |
nothing calls this directly
no outgoing calls
no test coverage detected