ahriman/tests/ahriman/web/views/conftest.py
Evgenii Alekseev b1dfafe275 dynamic html load (#63)
* dynamic html load
* split by classes
2022-05-20 22:29:36 +03:00

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, "", ""))