mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-30 10:17:18 +00:00
* migrate docstrings from reST to google format * add raises note Also change behaviour of the `from_option` method to fallback to disabled instead of raising exception on unknown option * fix part of warnings for sphinx * make identation a bit more readable * review fixes * add verbose description for properties to make them parsed by sphinx extenstion * add demo sphinx generator
34 lines
600 B
Python
34 lines
600 B
Python
import pytest
|
|
|
|
from ahriman.core.configuration import Configuration
|
|
from ahriman.core.sign.gpg import GPG
|
|
|
|
|
|
@pytest.fixture
|
|
def gpg(configuration: Configuration) -> GPG:
|
|
"""
|
|
fixture for empty GPG
|
|
|
|
Args:
|
|
configuration(Configuration): configuration fixture
|
|
|
|
Returns:
|
|
GPG: GPG test instance
|
|
"""
|
|
return GPG("x86_64", configuration)
|
|
|
|
|
|
@pytest.fixture
|
|
def gpg_with_key(gpg: GPG) -> GPG:
|
|
"""
|
|
fixture for correct GPG
|
|
|
|
Args:
|
|
gpg(GPG): empty GPG fixture
|
|
|
|
Returns:
|
|
GPG: GPG test instance
|
|
"""
|
|
gpg.default_key = "key"
|
|
return gpg
|