source: mailjam/bin/run_tests@ 1:421645ee4cd9

Last change on this file since 1:421645ee4cd9 was 1:421645ee4cd9, checked in by Francisco de Borja Lopez Rio <borja@…>, 12 years ago

Moved the source code from src/ to postman/

Added tests (unittests) splitted into one testing module per app source
file (tests/models.py for testing models.py, tests/storage.py for testing
storage.py and so on). Currently only tests for models have been added.

Added a script to run the tests

  • Property exe set to *
File size: 376 bytes
Line 
1#!/usr/bin/env python
2#
3# Run the tests for the postman package
4
5import os, sys, unittest
6
7try:
8 from postman.tests import *
9except ImportError:
10 sys.path.append(os.path.join(os.path.dirname(__file__), '../'))
11 try:
12 from postman.tests import *
13 except ImportError:
14 raise SystemExit('Could not find postman on your filesystem')
15
16unittest.main()
Note: See TracBrowser for help on using the repository browser.