mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-09-14 12:49:56 +00:00
add ability to partition tree before calculationn
This commit is contained in:
@ -600,6 +600,16 @@ def test_subparsers_repo_tree_architecture(parser: argparse.ArgumentParser) -> N
|
||||
assert args.architecture == ["x86_64"]
|
||||
|
||||
|
||||
def test_subparsers_repo_tree_option_partitions(parser: argparse.ArgumentParser) -> None:
|
||||
"""
|
||||
must convert partitions option to int instance
|
||||
"""
|
||||
args = parser.parse_args(["repo-tree"])
|
||||
assert isinstance(args.partitions, int)
|
||||
args = parser.parse_args(["repo-tree", "--partitions", "42"])
|
||||
assert isinstance(args.partitions, int)
|
||||
|
||||
|
||||
def test_subparsers_repo_triggers_architecture(parser: argparse.ArgumentParser) -> None:
|
||||
"""
|
||||
repo-triggers command must correctly parse architecture list
|
||||
|
Reference in New Issue
Block a user