Changeset 16:cd4170142d87 in mailjam for bin/run_tests
- Timestamp:
- May 22, 2012, 9:31:15 AM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bin/run_tests
r10 r16 1 1 #!/usr/bin/env python 2 2 # 3 # Run the tests for the postmanpackage3 # Run the tests for the mailjam package 4 4 5 5 import os, shutil, sys, unittest 6 6 7 7 try: 8 from postman.tests import *8 from mailjam.tests import * 9 9 except ImportError: 10 10 sys.path.append(os.path.join(os.path.dirname(__file__), '../')) 11 11 try: 12 from postman.tests import *12 from mailjam.tests import * 13 13 except ImportError: 14 raise SystemExit('Could not find postmanon your filesystem')14 raise SystemExit('Could not find mailjam on your filesystem') 15 15 16 16 try: … … 18 18 finally: 19 19 # FIXME: hardcoded path to the tmp directory, we should read this path 20 # from postman/tests/postman.conf21 shutil.rmtree('/tmp/ postman-tests')20 # from mailjam/tests/mailjam.conf 21 shutil.rmtree('/tmp/mailjam-tests')
Note:
See TracChangeset
for help on using the changeset viewer.