issues
search
i8enn
/
pydantic-odm
Small async ODM for MongoDB based in Motor and Pydantic library
MIT License
39
stars
8
forks
source link
Fix creating empty id field in models
#25
Closed
i8enn
closed
4 years ago
i8enn
commented
4 years ago
Fix #23 issue
Created MongoDB decoders for decode MongoDB documents to internal pydantic mixin models.
Replaced faked
id
property to normally pydantic field
Implemented decoding mongo documents and data in
_doc
field with MongoDB decoders
Replaced
_id
field to
id
in
_doc
mixin field
Removed unused methods, functions and properties from mixins and mixins tests
Moved pytest and coverage configurations to setup.cfg
Changed pytest config:
Changed test classes pattern to
*TestCase
Changed test functions pattern to
test_*
Changed finding tests to finding in all python files in tests directory
Changed watching directories for
looponfile
mode to
tests
and
pydantic-odm
id
property to normally pydantic field_doc
field with MongoDB decoders_id
field toid
in_doc
mixin field*TestCase
test_*
looponfile
mode totests
andpydantic-odm