mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-07-13 05:55:46 +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
20 lines
387 B
Python
20 lines
387 B
Python
import pytest
|
|
|
|
from sqlite3 import Connection
|
|
|
|
from ahriman.core.database.migrations import Migrations
|
|
|
|
|
|
@pytest.fixture
|
|
def migrations(connection: Connection) -> Migrations:
|
|
"""
|
|
fixture for migrations object
|
|
|
|
Args:
|
|
connection(Connection): sqlite connection fixture
|
|
|
|
Returns:
|
|
Migrations: migrations test instance
|
|
"""
|
|
return Migrations(connection)
|