|
Last change
on this file since 2:108a82defd3e was 1:421645ee4cd9, checked in by Francisco de Borja Lopez Rio <borja@…>, 13 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
|
|
|
|
File size:
376 bytes
|
| Rev | Line | |
|---|
| [1] | 1 | #!/usr/bin/env python
|
|---|
| 2 | #
|
|---|
| 3 | # Run the tests for the postman package
|
|---|
| 4 |
|
|---|
| 5 | import os, sys, unittest
|
|---|
| 6 |
|
|---|
| 7 | try:
|
|---|
| 8 | from postman.tests import *
|
|---|
| 9 | except 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 |
|
|---|
| 16 | unittest.main()
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.