mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-01-03 21:03:43 +00:00
drop excess REQUIRES_REPOSITORY
This commit is contained in:
@ -35,8 +35,6 @@ 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:
|
||||||
|
|||||||
@ -47,7 +47,6 @@ class LogsRotationTrigger(Trigger):
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
REQUIRES_REPOSITORY = True
|
|
||||||
|
|
||||||
def __init__(self, repository_id: RepositoryId, configuration: Configuration) -> None:
|
def __init__(self, repository_id: RepositoryId, configuration: Configuration) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -336,7 +336,6 @@ class ReportTrigger(Trigger):
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
REQUIRES_REPOSITORY = True
|
|
||||||
|
|
||||||
def __init__(self, repository_id: RepositoryId, configuration: Configuration) -> None:
|
def __init__(self, repository_id: RepositoryId, configuration: Configuration) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -103,7 +103,6 @@ class KeyringTrigger(Trigger):
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
REQUIRES_REPOSITORY = True
|
|
||||||
|
|
||||||
def __init__(self, repository_id: RepositoryId, configuration: Configuration) -> None:
|
def __init__(self, repository_id: RepositoryId, configuration: Configuration) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -90,7 +90,6 @@ class MirrorlistTrigger(Trigger):
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
REQUIRES_REPOSITORY = True
|
|
||||||
|
|
||||||
def __init__(self, repository_id: RepositoryId, configuration: Configuration) -> None:
|
def __init__(self, repository_id: RepositoryId, configuration: Configuration) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -160,7 +160,6 @@ class UploadTrigger(Trigger):
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
REQUIRES_REPOSITORY = True
|
|
||||||
|
|
||||||
def __init__(self, repository_id: RepositoryId, configuration: Configuration) -> None:
|
def __init__(self, repository_id: RepositoryId, configuration: Configuration) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -5,13 +5,6 @@ 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
|
||||||
|
|||||||
@ -7,13 +7,6 @@ from ahriman.core.status import Client
|
|||||||
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 LogsRotationTrigger.REQUIRES_REPOSITORY
|
|
||||||
|
|
||||||
|
|
||||||
def test_configuration_sections(configuration: Configuration) -> None:
|
def test_configuration_sections(configuration: Configuration) -> None:
|
||||||
"""
|
"""
|
||||||
must correctly parse target list
|
must correctly parse target list
|
||||||
|
|||||||
@ -5,13 +5,6 @@ from ahriman.core.report import ReportTrigger
|
|||||||
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 ReportTrigger.REQUIRES_REPOSITORY
|
|
||||||
|
|
||||||
|
|
||||||
def test_configuration_sections(configuration: Configuration) -> None:
|
def test_configuration_sections(configuration: Configuration) -> None:
|
||||||
"""
|
"""
|
||||||
must correctly parse target list
|
must correctly parse target list
|
||||||
|
|||||||
@ -7,13 +7,6 @@ from ahriman.core.sign.gpg import GPG
|
|||||||
from ahriman.core.support import KeyringTrigger
|
from ahriman.core.support import KeyringTrigger
|
||||||
|
|
||||||
|
|
||||||
def test_requires_repository() -> None:
|
|
||||||
"""
|
|
||||||
must require repository identifier to be set to start
|
|
||||||
"""
|
|
||||||
assert KeyringTrigger.REQUIRES_REPOSITORY
|
|
||||||
|
|
||||||
|
|
||||||
def test_configuration_sections(configuration: Configuration) -> None:
|
def test_configuration_sections(configuration: Configuration) -> None:
|
||||||
"""
|
"""
|
||||||
must correctly parse target list
|
must correctly parse target list
|
||||||
|
|||||||
@ -4,13 +4,6 @@ from ahriman.core.configuration import Configuration
|
|||||||
from ahriman.core.support import MirrorlistTrigger
|
from ahriman.core.support import MirrorlistTrigger
|
||||||
|
|
||||||
|
|
||||||
def test_requires_repository() -> None:
|
|
||||||
"""
|
|
||||||
must require repository identifier to be set to start
|
|
||||||
"""
|
|
||||||
assert MirrorlistTrigger.REQUIRES_REPOSITORY
|
|
||||||
|
|
||||||
|
|
||||||
def test_configuration_sections(configuration: Configuration) -> None:
|
def test_configuration_sections(configuration: Configuration) -> None:
|
||||||
"""
|
"""
|
||||||
must correctly parse target list
|
must correctly parse target list
|
||||||
|
|||||||
@ -5,13 +5,6 @@ from ahriman.core.upload import UploadTrigger
|
|||||||
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 UploadTrigger.REQUIRES_REPOSITORY
|
|
||||||
|
|
||||||
|
|
||||||
def test_configuration_sections(configuration: Configuration) -> None:
|
def test_configuration_sections(configuration: Configuration) -> None:
|
||||||
"""
|
"""
|
||||||
must correctly parse target list
|
must correctly parse target list
|
||||||
|
|||||||
Reference in New Issue
Block a user