You've already forked RekomenciBackend
refactor tests
This commit is contained in:
@@ -5,6 +5,7 @@ import pytest
|
||||
from dishka import AsyncContainer
|
||||
|
||||
from template_project.web_api.configuration import load_configuration
|
||||
from tests.web_api.helpers import get_unique_email
|
||||
from tests.web_api.ioc import make_ioc
|
||||
|
||||
|
||||
@@ -15,3 +16,8 @@ async def dishka_container() -> AsyncIterable[AsyncContainer]:
|
||||
ioc = make_ioc(configuration)
|
||||
yield ioc
|
||||
await ioc.close()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def unique_email() -> str:
|
||||
return get_unique_email()
|
||||
|
||||
Reference in New Issue
Block a user