openzim / cms

ZIM file Publishing Platform
https://cms.openzim.org
GNU General Public License v3.0
4 stars 0 forks source link

Async tests with client-server DB #59

Closed rgaudin closed 2 years ago

rgaudin commented 2 years ago

Now using AsyncClient from httpx for tests as FastAPI's client doesn't support async tests

Moved FastAPI instantiation to a function so we can control when it is created and thus prevent event_loop disparities in tests for instance.

Fixes #52