annotate gpp/settings/test.py @ 505:a5d11471d031

Refactor the logic in the rate limiter decorator. Check to see if the request was ajax, as the ajax view always returns 200. Have to decode the JSON response to see if an error occurred or not.
author Brian Neal <bgneal@gmail.com>
date Sat, 03 Dec 2011 19:13:38 +0000
parents 1a09a7bea000
children 82b97697312e
rev   line source
bgneal@499 1 """
bgneal@499 2 Settings to use when running tests. Uses sqlite for speed.
bgneal@499 3
bgneal@499 4 """
bgneal@499 5 from settings.base import *
bgneal@499 6
bgneal@499 7 DATABASES = {
bgneal@499 8 'default': {
bgneal@499 9 'ENGINE': 'django.db.backends.sqlite3',
bgneal@499 10 'NAME': 'dev.db',
bgneal@499 11 },
bgneal@499 12 }
bgneal@499 13
bgneal@499 14 # For unit-testing the Donations module w/o using the Paypal sandbox
bgneal@499 15 DONATIONS_DEBUG_VERIFY_RESPONSE = 'VERIFIED'
bgneal@499 16 DONATIONS_BUSINESS_DEBUG = 'brian@surfguitar101.com'