mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-07-15 07:11:07 +00:00
20 lines
390 B
Python
20 lines
390 B
Python
import pytest
|
|
|
|
from aiohttp.web import Application
|
|
|
|
from ahriman.web.views.base import BaseView
|
|
|
|
|
|
@pytest.fixture
|
|
def base(application: Application) -> BaseView:
|
|
"""
|
|
base view fixture
|
|
|
|
Args:
|
|
application(Application): application fixture
|
|
|
|
Returns:
|
|
BaseView: generated base view fixture
|
|
"""
|
|
return BaseView(pytest.helpers.request(application, "", ""))
|