kaizendorks / pymongo_inmemory

A mongo mocking library with an ephemeral MongoDB running in memory.
MIT License
40 stars 13 forks source link

Centralize configuration #1

Closed ekarademir closed 4 years ago

ekarademir commented 5 years ago

Make all configuration tokens:

download_folder
extract_folder
bin_folder
log_level
mongo_version
operating_system

configurable from 1) Environment variables, then 2) pymongo_inmemory.ini, then 3) setup.cfg under pymongo_inmemory, then 4) A sensible default value.

All config should be obtained from conf function in _utils.py

Environment variables should be all capitals and prefixed by PYMONGOIM__.