mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-10-25 04:45:01 +00:00
fix: handle version subcommand correctly
After package split it was looking for metapackage and lookup was broken because it doesn't contain any python metadata
This commit is contained in:
1 parent
9e5468313e
commit
6e7651a176
2 files changed
+10
-14
No files matched your search
@@ -17,7 +17,7 @@ def test_run(args: argparse.Namespace, configuration: Configuration, mocker: Moc
|
||||
|
||||
_, repository_id = configuration.check_loaded()
|
||||
Versions.run(args, repository_id, configuration, report=False)
|
||||
application_mock.assert_called_once_with("ahriman")
|
||||
application_mock.assert_called_once_with("ahriman-core", "ahriman-triggers", "ahriman-web")
|
||||
print_mock.assert_has_calls([
|
||||
MockCall(verbose=False, log_fn=pytest.helpers.anyvar(int), separator=" "),
|
||||
MockCall(verbose=False, log_fn=pytest.helpers.anyvar(int), separator=" "),
|
||||
@@ -37,7 +37,7 @@ def test_package_dependencies_missing() -> None:
|
||||
"""
|
||||
must extract package dependencies even if some of them are missing
|
||||
"""
|
||||
packages = dict(Versions.package_dependencies("ahriman"))
|
||||
packages = dict(Versions.package_dependencies("ahriman-core"))
|
||||
assert packages
|
||||
assert packages.get("pyalpm") is not None
|
||||
assert packages.get("Sphinx") is None
|
||||
|
||||
Reference in new issue
Block a user