mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-03-20 08:33:38 +00:00
feat: add pkgbuild subscommands
This commit is contained in:
@@ -2,24 +2,26 @@ import pytest
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from ahriman.core.formatters import \
|
||||
AurPrinter, \
|
||||
ChangesPrinter, \
|
||||
ConfigurationPathsPrinter, \
|
||||
ConfigurationPrinter, \
|
||||
EventStatsPrinter, \
|
||||
PackagePrinter, \
|
||||
PackageStatsPrinter, \
|
||||
PatchPrinter, \
|
||||
RepositoryPrinter, \
|
||||
RepositoryStatsPrinter, \
|
||||
StatusPrinter, \
|
||||
StringPrinter, \
|
||||
TreePrinter, \
|
||||
UpdatePrinter, \
|
||||
UserPrinter, \
|
||||
ValidationPrinter, \
|
||||
from ahriman.core.formatters import (
|
||||
AurPrinter,
|
||||
ChangesPrinter,
|
||||
ConfigurationPathsPrinter,
|
||||
ConfigurationPrinter,
|
||||
EventStatsPrinter,
|
||||
PackagePrinter,
|
||||
PackageStatsPrinter,
|
||||
PatchPrinter,
|
||||
PkgbuildPrinter,
|
||||
RepositoryPrinter,
|
||||
RepositoryStatsPrinter,
|
||||
StatusPrinter,
|
||||
StringPrinter,
|
||||
TreePrinter,
|
||||
UpdatePrinter,
|
||||
UserPrinter,
|
||||
ValidationPrinter,
|
||||
VersionPrinter
|
||||
)
|
||||
from ahriman.models.aur_package import AURPackage
|
||||
from ahriman.models.build_status import BuildStatus
|
||||
from ahriman.models.changes import Changes
|
||||
@@ -55,6 +57,17 @@ def changes_printer() -> ChangesPrinter:
|
||||
return ChangesPrinter(Changes("sha", "changes"))
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def pkgbuild_printer() -> PkgbuildPrinter:
|
||||
"""
|
||||
fixture for pkgbuild printer
|
||||
|
||||
Returns:
|
||||
PkgbuildPrinter: pkgbuild printer test instance
|
||||
"""
|
||||
return PkgbuildPrinter(Changes("sha", "changes", "pkgbuild content"))
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def configuration_paths_printer() -> ConfigurationPathsPrinter:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user