mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-11-30 13:20:40 +03:00
enable anyio for unit tests
This commit is contained in:
@@ -4,9 +4,7 @@ import pytest
|
||||
from fastapi import status
|
||||
from httpx import AsyncClient
|
||||
|
||||
# decorate all tests with @pytest.mark.asyncio
|
||||
pytestmark = pytest.mark.asyncio
|
||||
|
||||
pytestmark = pytest.mark.anyio
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"payload, status_code",
|
||||
|
||||
Reference in New Issue
Block a user