mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-10-13 08:40:29 +00:00
allow to specify list of package dependencies in rebuild target
also replace nargs= by action=append in non-positional args. It is required to make arguments parsing result more predictable and consistent
This commit is contained in:
1 parent
46389b87e7
commit
2eb2d3a70a
3 files changed
+7
-5
No files matched your search
@@ -8,7 +8,7 @@ from ahriman.models.package import Package
|
||||
|
||||
|
||||
def _default_args(args: argparse.Namespace) -> argparse.Namespace:
|
||||
args.depends_on = None
|
||||
args.depends_on = []
|
||||
return args
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ def test_run_filter(args: argparse.Namespace, configuration: Configuration,
|
||||
must run command with depends filter
|
||||
"""
|
||||
args = _default_args(args)
|
||||
args.depends_on = "python-aur"
|
||||
args.depends_on = ["python-aur"]
|
||||
mocker.patch("pathlib.Path.mkdir")
|
||||
mocker.patch("ahriman.core.repository.repository.Repository.packages",
|
||||
return_value=[package_ahriman, package_python_schedule])
|
||||
|
||||
Reference in new issue
Block a user