Compare commits
No commits in common. "5c8c3f16ae184c6e324abd407e5bce32fdbede4c" and "749e37354d2ff75d6f472e42aad6b09f15233223" have entirely different histories.
5c8c3f16ae
...
749e37354d
|
@ -46,7 +46,7 @@ async def get_test_session() -> AsyncGenerator[AsyncSession, None]:
|
||||||
|
|
||||||
|
|
||||||
@pytest_asyncio.fixture(scope='session')
|
@pytest_asyncio.fixture(scope='session')
|
||||||
async def client(event_loop) -> AsyncGenerator[AsyncClient, None]:
|
async def client() -> AsyncGenerator[AsyncClient, None]:
|
||||||
app: FastAPI = create_app()
|
app: FastAPI = create_app()
|
||||||
app.dependency_overrides[get_async_session] = get_test_session
|
app.dependency_overrides[get_async_session] = get_test_session
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue