# Path: moedjpack/moepad/mputils.py
# def sub_dict(somedict, somekeys, default=None):
# def loggerInit(logfile):
# def utcnow():
# def _deletePrefix(key):
# def create_default_db():


import moedjpack.moepad.mpconf as mpconfig
from moedjpack.moepad.mputils import rs
from pytest import fixture
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: delo
# @Date:   2014-02-17 21:52:20
# @Email:  deloeating@gmail.com
# @Last modified by:   Sai
# @Last modified time: 2014-03-02 15:35:42


@fixture
def confData(request):
    mpconfig.MoePadConfKey = "MoePadConfTest"
    rs.hmset(mpconfig.MoePadConfKey,
             {
                 "sameItemInterval": '24',
                 "Domain": "www.pythonik.com",
                 "SinaAppSecret": "c146e4d5772bf6a3363d9c804ed2c128",
                 "SinaAppKey": "255208104",
                 "TencentAppKey": "255208102",
                 "TencentAppSecret": "c146e4d5772bf6a3363d9c804ed2c129",
             })

    @request.addfinalizer
    def teardown():

# Path: moedjpack/moepad/mputils.py
# def sub_dict(somedict, somekeys, default=None):
# def loggerInit(logfile):
# def utcnow():
# def _deletePrefix(key):
# def create_default_db():


# Path: moedjpack/moepad/tests/test_mpconfig.py
import moedjpack.moepad.mpconf as mpconfig
from moedjpack.moepad.mputils import rs
from pytest import fixture

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: delo
# @Date:   2014-02-17 21:52:20
# @Email:  deloeating@gmail.com
# @Last modified by:   Sai
# @Last modified time: 2014-03-02 15:35:42


@fixture
def confData(request):
    mpconfig.MoePadConfKey = "MoePadConfTest"
    rs.hmset(mpconfig.MoePadConfKey,
             {
                 "sameItemInterval": '24',
                 "Domain": "www.pythonik.com",
                 "SinaAppSecret": "c146e4d5772bf6a3363d9c804ed2c128",
                 "SinaAppKey": "255208104",
                 "TencentAppKey": "255208102",
                 "TencentAppSecret": "c146e4d5772bf6a3363d9c804ed2c129",
             })

    @request.addfinalizer
    def teardown():

        rs.delete(mpconfig.MoePadConfKey)