We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'd really love to use odmantic/fastapi to replace my current database setup (dynamodb)
Yet any way I try to implement testcases seem to fail as mongomock doesn't support sessions
Any way to tell odmantic not to use them?
The text was updated successfully, but these errors were encountered:
given this code raises "RuntimeError: Event loop is closed" as soon as more then one test is performed
from typing import Optional from unittest import IsolatedAsyncioTestCase from odmantic import AIOEngine, Model, Field class Publisher(Model): name: str founded: int = Field(ge=1440) location: Optional[str] = None engine = AIOEngine() class TestPatients(IsolatedAsyncioTestCase): async def test_one(self): await engine.save( Publisher( name="Penguin", founded=1935, location="London" ) ) async def test_two(self): await engine.save( Publisher( name="Penguin", founded=1935, location="London" ) )
Sorry, something went wrong.
If anyone interested - I started an example project which (still) fails https://github.com/jesusch/odmantic-test
No branches or pull requests
Question
I'd really love to use odmantic/fastapi to replace my current database setup (dynamodb)
Yet any way I try to implement testcases seem to fail as mongomock doesn't support sessions
Any way to tell odmantic not to use them?
The text was updated successfully, but these errors were encountered: