mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 15:27:17 +00:00
32 lines
723 B
Python
32 lines
723 B
Python
import pytest
|
|
|
|
from ahriman.core.configuration import Configuration
|
|
from ahriman.core.triggers import Trigger, TriggerLoader
|
|
|
|
|
|
@pytest.fixture
|
|
def trigger(configuration: Configuration) -> Trigger:
|
|
"""
|
|
fixture for trigger
|
|
|
|
Args:
|
|
configuration(Configuration): configuration fixture
|
|
|
|
Returns:
|
|
Trigger: trigger test instance
|
|
"""
|
|
return Trigger("x86_64", configuration)
|
|
|
|
|
|
@pytest.fixture
|
|
def trigger_loader(configuration: Configuration) -> TriggerLoader:
|
|
"""
|
|
fixture for trigger loader
|
|
Args:
|
|
configuration(Configuration): configuration fixture
|
|
|
|
Returns:
|
|
TriggerLoader: trigger loader test instance
|
|
"""
|
|
return TriggerLoader("x86_64", configuration)
|