diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-29 22:13:07 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-29 22:13:07 -0600 |
commit | f29fc1eb12376f1bb447f8e397fb98daa7ac3327 (patch) | |
tree | bc6aaca20ceff55b71273d698d7b47db8c0c5267 /test/python | |
parent | 8021955292d22ed0df5d7b018bf4238966d9c1e7 (diff) | |
download | fork-ledger-f29fc1eb12376f1bb447f8e397fb98daa7ac3327.tar.gz fork-ledger-f29fc1eb12376f1bb447f8e397fb98daa7ac3327.tar.bz2 fork-ledger-f29fc1eb12376f1bb447f8e397fb98daa7ac3327.zip |
Added skeletons for Python unit tests
Diffstat (limited to 'test/python')
-rw-r--r-- | test/python/JournalTest.py | 25 | ||||
-rw-r--r-- | test/python/PostingTest.py | 25 | ||||
-rw-r--r-- | test/python/TransactionTest.py | 25 | ||||
-rw-r--r-- | test/python/UnitTests.py | 12 |
4 files changed, 87 insertions, 0 deletions
diff --git a/test/python/JournalTest.py b/test/python/JournalTest.py new file mode 100644 index 00000000..66447f87 --- /dev/null +++ b/test/python/JournalTest.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- + +import unittest +import exceptions +import operator + +from ledger import * +from StringIO import * +from datetime import * + +class JournalTestCase(unittest.TestCase): + def setUp(self): + pass + + def tearDown(self): + pass + + def test_(self): + pass + +def suite(): + return unittest.TestLoader().loadTestsFromTestCase(JournalTestCase) + +if __name__ == '__main__': + unittest.main() diff --git a/test/python/PostingTest.py b/test/python/PostingTest.py new file mode 100644 index 00000000..f191253e --- /dev/null +++ b/test/python/PostingTest.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- + +import unittest +import exceptions +import operator + +from ledger import * +from StringIO import * +from datetime import * + +class PostingTestCase(unittest.TestCase): + def setUp(self): + pass + + def tearDown(self): + pass + + def test_(self): + pass + +def suite(): + return unittest.TestLoader().loadTestsFromTestCase(PostingTestCase) + +if __name__ == '__main__': + unittest.main() diff --git a/test/python/TransactionTest.py b/test/python/TransactionTest.py new file mode 100644 index 00000000..66447f87 --- /dev/null +++ b/test/python/TransactionTest.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- + +import unittest +import exceptions +import operator + +from ledger import * +from StringIO import * +from datetime import * + +class JournalTestCase(unittest.TestCase): + def setUp(self): + pass + + def tearDown(self): + pass + + def test_(self): + pass + +def suite(): + return unittest.TestLoader().loadTestsFromTestCase(JournalTestCase) + +if __name__ == '__main__': + unittest.main() diff --git a/test/python/UnitTests.py b/test/python/UnitTests.py new file mode 100644 index 00000000..388e2229 --- /dev/null +++ b/test/python/UnitTests.py @@ -0,0 +1,12 @@ +from unittest import TextTestRunner, TestSuite + +import JournalTest +import TransactionTest +import PostingTest + +suites = [ + JournalTest.suite(), + TransactionTest.suite(), + PostingTest.suite() +] +TextTestRunner().run(TestSuite(suites)) |