delete test_cli test
we already cover this in integration tests
This commit is contained in:
@@ -1,21 +1,12 @@
|
|||||||
import argparse
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from tempfile import TemporaryDirectory
|
from tempfile import TemporaryDirectory
|
||||||
|
|
||||||
import pytest
|
|
||||||
from environment import mock_env
|
from environment import mock_env
|
||||||
from host_group import HostGroup
|
from host_group import HostGroup
|
||||||
|
|
||||||
from clan_cli.machines.update import deploy_nixos, register_update_parser
|
from clan_cli.machines.update import deploy_nixos
|
||||||
|
|
||||||
|
|
||||||
def test_cli() -> None:
|
|
||||||
parser = argparse.ArgumentParser()
|
|
||||||
register_update_parser(parser)
|
|
||||||
with pytest.raises(SystemExit):
|
|
||||||
parser.parse_args(["--help"])
|
|
||||||
|
|
||||||
|
|
||||||
def test_update(clan_flake: Path, host_group: HostGroup) -> None:
|
def test_update(clan_flake: Path, host_group: HostGroup) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user