refactoring

This commit is contained in:
Devaev Maxim
2019-04-08 04:08:59 +03:00
parent 28c556d92e
commit 7eca51f17b
3 changed files with 11 additions and 11 deletions

View File

@@ -30,7 +30,7 @@ from kvmd.aioregion import AioExclusiveRegion
# =====
@pytest.mark.asyncio
async def test_aioregion__one__ok(event_loop: asyncio.AbstractEventLoop) -> None:
async def test_ok__aioregion__one(event_loop: asyncio.AbstractEventLoop) -> None:
_ = event_loop
region = AioExclusiveRegion(RegionIsBusyError)
@@ -48,7 +48,7 @@ async def test_aioregion__one__ok(event_loop: asyncio.AbstractEventLoop) -> None
@pytest.mark.asyncio
async def test_aioregion__one__fail(event_loop: asyncio.AbstractEventLoop) -> None:
async def test_fail__aioregion__one(event_loop: asyncio.AbstractEventLoop) -> None:
_ = event_loop
region = AioExclusiveRegion(RegionIsBusyError)
@@ -69,7 +69,7 @@ async def test_aioregion__one__fail(event_loop: asyncio.AbstractEventLoop) -> No
# =====
@pytest.mark.asyncio
async def test_aioregion__two__ok(event_loop: asyncio.AbstractEventLoop) -> None:
async def test_ok__aioregion__two(event_loop: asyncio.AbstractEventLoop) -> None:
region = AioExclusiveRegion(RegionIsBusyError)
async def func1() -> None:
@@ -92,7 +92,7 @@ async def test_aioregion__two__ok(event_loop: asyncio.AbstractEventLoop) -> None
@pytest.mark.asyncio
async def test_aioregion__two__fail(event_loop: asyncio.AbstractEventLoop) -> None:
async def test_fail__aioregion__two(event_loop: asyncio.AbstractEventLoop) -> None:
region = AioExclusiveRegion(RegionIsBusyError)
async def func1() -> None: