| Line |  | 
|---|
| 1 | #!/usr/bin/env python | 
|---|
| 2 | # | 
|---|
| 3 | # Run the tests for the mailjam package | 
|---|
| 4 |  | 
|---|
| 5 | import os, shutil, sys, unittest | 
|---|
| 6 |  | 
|---|
| 7 | try: | 
|---|
| 8 | from mailjam.tests import * | 
|---|
| 9 | except ImportError: | 
|---|
| 10 | sys.path.append(os.path.join(os.path.dirname(__file__), '../')) | 
|---|
| 11 | try: | 
|---|
| 12 | from mailjam.tests import * | 
|---|
| 13 | except ImportError: | 
|---|
| 14 | raise SystemExit('Could not find mailjam on your filesystem') | 
|---|
| 15 |  | 
|---|
| 16 | try: | 
|---|
| 17 | unittest.main() | 
|---|
| 18 | finally: | 
|---|
| 19 | # FIXME: hardcoded path to the tmp directory, we should read this path | 
|---|
| 20 | # from mailjam/tests/mailjam.conf | 
|---|
| 21 | shutil.rmtree('/tmp/mailjam-tests') | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.