~kolmis/wxbanker/csvimport

« back to all changes in this revision

Viewing changes to runtests.py

  • Committer: Karel Kolman
  • Date: 2009-05-02 18:32:40 UTC
  • mfrom: (48.1.177 wxbanker-0.5)
  • Revision ID: kolmis@gmail.com-20090502183240-y9jp1y60bdxbawwn
mergeĀ 0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
#
3
3
#    https://launchpad.net/wxbanker
4
 
#    runtests.py: Copyright 2007-2009 Mike Rooney <michael@wxbanker.org>
 
4
#    runtests.py: Copyright 2007-2009 Mike Rooney <mrooney@ubuntu.com>
5
5
#
6
6
#    This file is part of wxBanker.
7
7
#
24
24
    from testhelpers import displayhook
25
25
    import sys; sys.displayhook = displayhook
26
26
    
27
 
    import plotalgo, currencies, bankobjects, controller
28
 
    mods = [plotalgo, currencies, bankobjects, controller]
 
27
    import plotalgo, currencies, bankobjects, controller, currconvert
 
28
    mods = [plotalgo, currencies, bankobjects, controller, currconvert]
29
29
    
30
30
    #TODO: remove *.pyc first
31
31
    
42
42
    
43
43
    print "\n%i total failures out of %i total tests in %i modules." % (failures, tests, len(mods))
44
44
    if failures:
45
 
        print "TESTS FAILED.",
 
45
        print "TESTS FAILED."
46
46
    else:
47
 
        print "TESTS PASSED.",
 
47
        print "TESTS PASSED."
 
48
        
 
49
    import unittest, unittests
 
50
    unittest.TestProgram(unittests)
 
51
    
 
52
    
48
53
 
49
54
if __name__ == "__main__":
50
55
    main()