Mercurial > public > sg101
annotate gpp/settings/test.py @ 515:ae89ba801e8b
For #194, convert the POTD management command to a celery task.
Refactored to put the logic for the command into a function, and the command simply calls this function. The task can also just call this function. Added some basic tests for the new function.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 14 Dec 2011 02:41:15 +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' |