()
| 4410 | |
| 4411 | #[test] |
| 4412 | fn policy_delete_global_parses() { |
| 4413 | let cli = Cli::try_parse_from(["openshell", "policy", "delete", "--global", "--yes"]) |
| 4414 | .expect("policy delete --global should parse"); |
| 4415 | |
| 4416 | match cli.command { |
| 4417 | Some(Commands::Policy { |
| 4418 | command: Some(PolicyCommands::Delete { global, yes }), |
| 4419 | }) => { |
| 4420 | assert!(global); |
| 4421 | assert!(yes); |
| 4422 | } |
| 4423 | other => panic!("expected policy delete command, got: {other:?}"), |
| 4424 | } |
| 4425 | } |
| 4426 | |
| 4427 | #[test] |
| 4428 | fn settings_delete_global_parses_yes_flag() { |
nothing calls this directly
no outgoing calls
no test coverage detected