test_database.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:aiomongo 作者: ZeoAlliance 项目源码 文件源码
def test_deref_kwargs(self, mongo, test_db):
        await test_db.test.insert_one({'_id': 4, 'foo': 'bar'})
        db = mongo.get_database(
            'aiomongo_test', codec_options=CodecOptions(document_class=SON))
        assert SON([('foo', 'bar')]) == await db.dereference(DBRef('test', 4), projection={'_id': False})
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号