mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-05-04 20:23:49 +00:00
* implement elf dynamic linking check * load local database too in pacman wrapper
22 lines
610 B
Python
22 lines
610 B
Python
import pytest
|
|
|
|
from ahriman.core.alpm.pacman_database import PacmanDatabase
|
|
from ahriman.core.alpm.pacman import Pacman
|
|
from ahriman.core.configuration import Configuration
|
|
|
|
|
|
@pytest.fixture
|
|
def pacman_database(configuration: Configuration, pacman: Pacman) -> PacmanDatabase:
|
|
"""
|
|
database sync fixture
|
|
|
|
Args:
|
|
configuration(Configuration): configuration test instance
|
|
pacman(Pacman): pacman test instance
|
|
|
|
Returns:
|
|
DatabaseSync: database sync test instance
|
|
"""
|
|
database = next(iter(pacman.handle.get_syncdbs()))
|
|
return PacmanDatabase(database, configuration)
|