Python과 MongoDB 연동 API 테스트

2019. 4. 3. 18:56서버 프로그래밍

Unit testing python (flask) web API with MockupDB

https://medium.com/@piotrkarpaa/unit-testing-python-flask-web-api-with-mockupdb-c2cb72600854

 

Unit testing python (flask) web API with MockupDB

When I was working on REST API with Flask using MongoDB as data source, I found testing it really interesting. When I learn a new language…

medium.com

 

Testing PyMongo applications with MockupDB

https://blog.zhaw.ch/icclab/testing-pymongo-applications-with-mockupdb/

 

Testing PyMongo applications with MockupDB

In one of our projects, we needed to test some mongo based backend functionality: we wrote a small application which comprised of a mongo backend and a python app which communicated with the backend via pymongo. We like the flexibility of mongo in a rapid

blog.zhaw.ch

 

mongomock

https://github.com/mongomock/mongomock

 

mongomock/mongomock

Small library for mocking pymongo collection objects for testing purposes - mongomock/mongomock

github.com

https://pypi.org/project/mongomock/

 

mongomock

Fake pymongo stub for testing simple MongoDB-dependent code

pypi.org

 

https://www.programcreek.com/python/example/105904/mongomock.MongoClient

 

mongomock.MongoClient Python Example

Python mongomock.MongoClient() Examples The following are 18 code examples for showing how to use mongomock.MongoClient(). They are extracted from open source Python projects. You can vote up the examples you like or vote down the exmaples you don't like.

www.programcreek.com

https://programtalk.com/python-examples/mongomock.MongoClient/

 

mongomock.MongoClient Example

python code examples for mongomock.MongoClient. Learn how to use python api mongomock.MongoClient

programtalk.com