"""Configuration Settings!
"""
import os
import sys


class BaseConfig(object):
    """Base Configuration settings"""
    MONGODB_URI = os.environ.get('MONGODB_URI', 'mongodb://localhost:27017/badash')
    DEFAULT_PAGE_SIZE = 10


class LocalConfig(BaseConfig):
    """Local Configuration settings"""
    pass


class TestingConfig(BaseConfig):
    """Settings to use while running tests"""
    MONGODB_URI = 'mongodb://localhost:27017/test_badash'


class ProductionConfig(BaseConfig):
    """Production Settings"""
    pass


class DevConfig(BaseConfig):
    """Dev Settings"""
    pass


STAGE = 'testing' if sys.__dict__.get('_called_from_test') else os.environ.get('HUG_SETTINGS', 'local').lower()
print(STAGE)

CONFIG_STAGES = {
    'local': LocalConfig,
    'testing': TestingConfig,
    'prod': ProductionConfig,
    'dev': DevConfig,
}


settings = CONFIG_STAGES[STAGE]

@@ -404,26 +404,28 @@
 URI = 'mongo
-db
+mock
 ://localhost

use mongomock for running tests