mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-01-03 21:03:43 +00:00
support requires repostory flag
This commit is contained in:
@ -35,6 +35,8 @@ class ArchiveTrigger(Trigger):
|
|||||||
tree(ArchiveTree): archive tree wrapper
|
tree(ArchiveTree): archive tree wrapper
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
REQUIRES_REPOSITORY = True
|
||||||
|
|
||||||
def __init__(self, repository_id: RepositoryId, configuration: Configuration) -> None:
|
def __init__(self, repository_id: RepositoryId, configuration: Configuration) -> None:
|
||||||
"""
|
"""
|
||||||
Args:
|
Args:
|
||||||
|
|||||||
@ -5,6 +5,13 @@ from ahriman.models.package import Package
|
|||||||
from ahriman.models.result import Result
|
from ahriman.models.result import Result
|
||||||
|
|
||||||
|
|
||||||
|
def test_requires_repository() -> None:
|
||||||
|
"""
|
||||||
|
must require repository identifier to be set to start
|
||||||
|
"""
|
||||||
|
assert ArchiveTrigger.REQUIRES_REPOSITORY
|
||||||
|
|
||||||
|
|
||||||
def test_on_result(archive_trigger: ArchiveTrigger, package_ahriman: Package, mocker: MockerFixture) -> None:
|
def test_on_result(archive_trigger: ArchiveTrigger, package_ahriman: Package, mocker: MockerFixture) -> None:
|
||||||
"""
|
"""
|
||||||
must create symlinks for actual repository
|
must create symlinks for actual repository
|
||||||
|
|||||||
Reference in New Issue
Block a user