15 lines
389 B
Rust
15 lines
389 B
Rust
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
use clap::Parser;
|
|
use molotov_cli::commands::Cli;
|
|
|
|
#[test]
|
|
fn test_cli_parse_launch_place() {
|
|
let parsed = Cli::try_parse_from(["molotov", "launch", "--place-id", "1818"]);
|
|
assert!(parsed.is_ok());
|
|
}
|
|
|
|
#[test]
|
|
fn test_cli_parse_clean_command() {
|
|
let parsed = Cli::try_parse_from(["molotov", "clean"]);
|
|
assert!(parsed.is_ok());
|
|
}
|