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