~osomon/pyexiv2/pyexiv2-0.3

« back to all changes in this revision

Viewing changes to test/TestsRunner.py

  • Committer: Olivier Tilloy
  • Date: 2011-08-12 06:29:47 UTC
  • mto: This revision was merged to the branch mainline in revision 360.
  • Revision ID: olivier@tilloy.net-20110812062947-fc9ldiyjfw78utxm
Custom DateTimeFormatter helper to convert date/time objects to strings conforming to the EXIF/IPTC/XMP formats.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
# ******************************************************************************
5
5
#
6
 
# Copyright (C) 2008-2010 Olivier Tilloy <olivier@tilloy.net>
 
6
# Copyright (C) 2008-2011 Olivier Tilloy <olivier@tilloy.net>
7
7
#
8
8
# This file is part of the pyexiv2 distribution.
9
9
#
41
41
from utils import TestConversions, TestFractions
42
42
from usercomment import TestUserCommentReadWrite, TestUserCommentAdd
43
43
from pickling import TestPicklingTags
 
44
from datetimeformatter import TestDateTimeFormatter
44
45
 
45
46
 
46
47
def run_unit_tests():
62
63
    suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(TestUserCommentReadWrite))
63
64
    suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(TestUserCommentAdd))
64
65
    suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(TestPicklingTags))
 
66
    suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(TestDateTimeFormatter))
65
67
    # Run the test suite
66
68
    return unittest.TextTestRunner(verbosity=2).run(suite)
67
69