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