mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-07-17 16:21:07 +00:00
20 lines
519 B
Python
20 lines
519 B
Python
import pytest
|
|
|
|
from ahriman.core.configuration import Configuration
|
|
from ahriman.core.configuration.schema import CONFIGURATION_SCHEMA
|
|
from ahriman.core.configuration.validator import Validator
|
|
|
|
|
|
@pytest.fixture
|
|
def validator(configuration: Configuration) -> Validator:
|
|
"""
|
|
fixture for validator
|
|
|
|
Args:
|
|
configuration(Configuration): configuration fixture
|
|
|
|
Returns:
|
|
Validator: validator test instance
|
|
"""
|
|
return Validator(configuration=configuration, schema=CONFIGURATION_SCHEMA)
|