示例#1
0
from shoplifter.payment import config, plugins
from shoplifter.core import plugins as core_plugins


TEST_CREDENTIALS = {
    'dummypayment': ('4242424242424242', '2011', '01', '123'),
    'dummygiftcard': ('derp', ),
    }


mongoengine.connect('testdb6')


core_plugins.load('temp_storage', 'memcache', **{
        'key': 'testkey123456789',
        'location': ('127.0.0.1:11211', ),
        })

config.update({
        'cc_store_time': 5 * 60,
        'temp_store': core_plugins['temp_storage'].memcache,
        })


backend_settings = {
    'dummypayment': {
        'username': '******',
        'password': '******',
        'api_key': 'derp',
        'url': 'http://derp',
        },
示例#2
0
 def setUp(self):
     config.cc_store_time = 60 * 5
     core_plugins.load('temp_storage', 'dummy', None, 'thisisakey123456')
     config.temp_store = core_plugins['temp_storage'].dummy