art049 / art049/odmantic

Question: how to mock/write propper unittests

Open
#403 2 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Python
Stars
1.2k
Forks
97
PR merge metrics
No merged PRs in 30d

Description

# 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?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported ODMantic and FastAPI test setup with mongomock, focusing on the session-related failure described in the issue. Trace where ODMantic uses sessions and define whether the desired outcome is a supported session-free test path or documentation of the limitation; the issue is done when that behavior is clearly supported or explained.

Written by the indexing model from the issue text.

Assessment

Tech stack
fastapi, mongodb, python
Domain
databases, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.