mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-08-30 13:29:55 +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
16 lines
277 B
Python
16 lines
277 B
Python
import pytest
|
|
|
|
from sqlite3 import Connection
|
|
from unittest.mock import MagicMock
|
|
|
|
|
|
@pytest.fixture
|
|
def connection() -> Connection:
|
|
"""
|
|
mock object for sqlite3 connection
|
|
|
|
Returns:
|
|
Connection: sqlite3 connection test instance
|
|
"""
|
|
return MagicMock()
|