Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 40 lines (32 sloc) 1.141 kb
78da416 @dcramer Added standalone unit test runner. Fixed test_doDirectPayment_invalid lo...
authored
1 #!/usr/bin/env python
2 import sys
3 import getpass
4
5 from os.path import dirname, abspath
6
7 from django.conf import settings
8
9 if not settings.configured:
10 settings.configure(
c8a3e88 @dcramer Include IPN tests in runner
authored
11 ROOT_URLCONF='',
78da416 @dcramer Added standalone unit test runner. Fixed test_doDirectPayment_invalid lo...
authored
12 DATABASE_ENGINE='sqlite3',
c8a3e88 @dcramer Include IPN tests in runner
authored
13 PAYPAL_RECEIVER_EMAIL='test@example.com',
78da416 @dcramer Added standalone unit test runner. Fixed test_doDirectPayment_invalid lo...
authored
14 PAYPAL_TEST=True,
15 # Please dont make me create another test account and remove this from here :)
16 PAYPAL_WPP_USER='dcrame_1278645792_biz_api1.gmail.com',
17 PAYPAL_WPP_PASSWORD='1278645801',
18 PAYPAL_WPP_SIGNATURE='A4k1.O6xTyld5TiKeVmCuOgqzLRuAKuTtSG.7BD3R9E8SBa-J0pbUeYp',
19 INSTALLED_APPS=[
20 'paypal.pro',
21 'paypal.standard',
c8a3e88 @dcramer Include IPN tests in runner
authored
22 'paypal.standard.ipn',
23 # 'paypal.standard.pdt', # we need the PDT token
78da416 @dcramer Added standalone unit test runner. Fixed test_doDirectPayment_invalid lo...
authored
24 ]
25 )
26
27 from django.test.simple import run_tests
28
29
30 def runtests(*test_args):
31 if not test_args:
c8a3e88 @dcramer Include IPN tests in runner
authored
32 test_args = ['pro', 'standard', 'ipn']
78da416 @dcramer Added standalone unit test runner. Fixed test_doDirectPayment_invalid lo...
authored
33 parent = dirname(abspath(__file__))
34 sys.path.insert(0, parent)
35 failures = run_tests(test_args, verbosity=1, interactive=True)
36 sys.exit(failures)
37
38
39 if __name__ == '__main__':
40 runtests(*sys.argv[1:])
Something went wrong with that request. Please try again.