Changeset 10:d5329a2a05b7 in mailjam for bin


Ignore:
Timestamp:
May 20, 2012, 9:39:51 AM (13 years ago)
Author:
Borja Lopez <borja@…>
Branch:
default
Phase:
public
Message:

Fully added support for the configuration file. Now all the code uses
postman.conf to read the configuration parameters from it

Added a tests/postman.conf configuration file with specific configurtion
to use while testing (mostly tmp paths)

Updated the run_tests script to delete the temporary directory where
data is saved while running tests

Updated the tests modules/files so they use the tests config file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/run_tests

    r1 r10  
    33# Run the tests for the postman package
    44
    5 import os, sys, unittest
     5import os, shutil, sys, unittest
    66
    77try:
     
    1313    except ImportError:
    1414        raise SystemExit('Could not find postman on your filesystem')
    15    
    16 unittest.main()
     15
     16try:
     17    unittest.main()
     18finally:
     19    # FIXME: hardcoded path to the tmp directory, we should read this path
     20    # from postman/tests/postman.conf
     21    shutil.rmtree('/tmp/postman-tests')
Note: See TracChangeset for help on using the changeset viewer.