source: mailjam/bin/run_tests@ 19:071beb2c34a1

Last change on this file since 19:071beb2c34a1 was 16:cd4170142d87, checked in by Borja Lopez <borja@…>, 12 years ago

Renamed the project to Mailjam

  • Property exe set to *
File size: 551 bytes
RevLine 
[1]1#!/usr/bin/env python
2#
[16]3# Run the tests for the mailjam package
[1]4
[10]5import os, shutil, sys, unittest
[1]6
7try:
[16]8 from mailjam.tests import *
[1]9except 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
16try:
17 unittest.main()
18finally:
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.