# -*- coding: utf-8 -*-
import os


class Config(object):
    DEBUG = False
    TESTING = False
    REDIS_URI = 'redis://@localhost:6379/0'
    BASIC_AUTH_USERNAME = os.environ['RBM2M_LOGIN']
    BASIC_AUTH_PASSWORD = os.environ['RBM2_PASSWORD']


class ProductionConfig(Config):
    # TODO: ?charset=utf8
    SQLALCHEMY_DATABASE_URI = os.environ.get('RBM2M_DATABASE_URI')
    REDIS_URI = os.environ.get('RBM2M_REDIS_URI')


class DevelopmentConfig(Config):
    SQLALCHEMY_DATABASE_URI = 'mysql://rbm2m:rbm2m@127.0.0.1/rbm2m'
    SQLALCHEMY_ECHO = False
    DEBUG = True


class TestingConfig(Config):
    TESTING = True
    SQLALCHEMY_DATABASE_URI = 'mysql://rbm2m:rbm2m@localhost/rbm2m_test'

# -*- coding: utf-8 -*-
import os


class Config(object):
    DEBUG = False
    TESTING = False
    REDIS_URI = 'redis://@localhost:6379/0'
    BASIC_AUTH_USERNAME = os.environ['RBM2M_LOGIN']
    BASIC_AUTH_PASSWORD = os.environ['RBM2M_PASSWORD']


class ProductionConfig(Config):
    # TODO: ?charset=utf8
    SQLALCHEMY_DATABASE_URI = os.environ.get('RBM2M_DATABASE_URI')
    REDIS_URI = os.environ.get('RBM2M_REDIS_URI')


class DevelopmentConfig(Config):
    SQLALCHEMY_DATABASE_URI = 'mysql://rbm2m:rbm2m@127.0.0.1/rbm2m'
    SQLALCHEMY_ECHO = False
    DEBUG = True


class TestingConfig(Config):
    TESTING = True
    SQLALCHEMY_DATABASE_URI = 'mysql://rbm2m:rbm2m@localhost/rbm2m_test'

Fix password env variable name
Fix password env variable name
