Changeset 7970 for main/waeup.custom/trunk/src/waeup/custom/etranzact
- Timestamp:
- 23 Mar 2012, 06:48:01 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.custom/trunk/src/waeup/custom/etranzact/tests.py
r7929 r7970 20 20 from waeup.custom.testing import FunctionalLayer 21 21 22 23 # Also run tests that send requests to external servers? 24 # If you enable this, please make sure the external services 25 # do exist really and are not bothered by being spammed by a test programme. 26 EXTERNAL_TESTS = False 27 28 def external_test(func): 29 if not EXTERNAL_TESTS: 30 myself = __file__ 31 if myself.endswith('.pyc'): 32 myself = myself[:-2] 33 print "WARNING: external tests are skipped!" 34 print "WARNING: edit %s to enable them." % myself 35 return 36 return func 37 22 38 class EtranzactTests(StudentsFullSetup): 23 39 """Tests foreTranzact payment gateway. … … 28 44 CONFIRMATION_NO = '500856521315472785095' 29 45 46 def test_dummy(self): 47 return 48 49 @external_test 30 50 def test_etranzact_query_history(self): 31 51
Note: See TracChangeset for help on using the changeset viewer.