File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 1212from src .models import table_register
1313
1414
15- @pytest .fixture
15+ @pytest .fixture ( scope = 'session' )
1616def anyio_backend ():
1717 return 'asyncio'
1818
1919
2020@pytest .fixture (scope = 'session' )
21- def postgres_container ():
21+ def postgres_container (anyio_backend ):
2222 with PostgresContainer ('postgres:16' , driver = 'asyncpg' ) as postgres :
2323 yield postgres
2424
Original file line number Diff line number Diff line change 11from http import HTTPStatus
22
3- import pytest
43from httpx import AsyncClient
54from sqlalchemy .ext .asyncio import AsyncSession
65
76from src .models import Ticket
87
9- pytestmark = pytest .mark .anyio
10-
118
129async def test_get_all_tickets_success (
1310 async_session : AsyncSession , async_client : AsyncClient
You can’t perform that action at this time.
0 commit comments