This repository has been archived on 2026-10-10. You can view files and clone it, but cannot push or open issues or pull requests.
molotov/crates/molotov-cli/tests/cli_test.rs

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());
}