Commit 3154624a authored by Grégory Wisniewski's avatar Grégory Wisniewski

Use unittest.main() to allow handle command line arguments.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1789 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent ba8f014f
...@@ -24,7 +24,8 @@ from neo.tests.zodb import ZODBTestCase ...@@ -24,7 +24,8 @@ from neo.tests.zodb import ZODBTestCase
class BasicTests(ZODBTestCase, StorageTestBase, BasicStorage): class BasicTests(ZODBTestCase, StorageTestBase, BasicStorage):
pass pass
if __name__ == "__main__": if __name__ == "__main__":
suite = unittest.makeSuite(BasicTests, 'check') suite = unittest.makeSuite(BasicTests, 'check')
unittest.TextTestRunner().run(suite) unittest.main(defaultTest='suite')
...@@ -26,5 +26,5 @@ class ConflictTests(ZODBTestCase, StorageTestBase, ConflictResolvingStorage): ...@@ -26,5 +26,5 @@ class ConflictTests(ZODBTestCase, StorageTestBase, ConflictResolvingStorage):
if __name__ == "__main__": if __name__ == "__main__":
suite = unittest.makeSuite(ConflictTests, 'check') suite = unittest.makeSuite(ConflictTests, 'check')
unittest.TextTestRunner().run(suite) unittest.main(defaultTest='suite')
...@@ -26,5 +26,5 @@ class HistoryTests(ZODBTestCase, StorageTestBase, HistoryStorage): ...@@ -26,5 +26,5 @@ class HistoryTests(ZODBTestCase, StorageTestBase, HistoryStorage):
if __name__ == "__main__": if __name__ == "__main__":
suite = unittest.makeSuite(HistoryTests, 'check') suite = unittest.makeSuite(HistoryTests, 'check')
unittest.TextTestRunner().run(suite) unittest.main(defaultTest='suite')
...@@ -28,5 +28,5 @@ class IteratorTests(ZODBTestCase, StorageTestBase, IteratorStorage, ...@@ -28,5 +28,5 @@ class IteratorTests(ZODBTestCase, StorageTestBase, IteratorStorage,
if __name__ == "__main__": if __name__ == "__main__":
suite = unittest.makeSuite(IteratorTests, 'check') suite = unittest.makeSuite(IteratorTests, 'check')
unittest.TextTestRunner().run(suite) unittest.main(defaultTest='suite')
...@@ -26,5 +26,5 @@ class MTTests(ZODBTestCase, StorageTestBase, MTStorage): ...@@ -26,5 +26,5 @@ class MTTests(ZODBTestCase, StorageTestBase, MTStorage):
if __name__ == "__main__": if __name__ == "__main__":
suite = unittest.makeSuite(MTTests, 'check') suite = unittest.makeSuite(MTTests, 'check')
unittest.TextTestRunner().run(suite) unittest.main(defaultTest='suite')
...@@ -29,5 +29,5 @@ class PackableTests(ZODBTestCase, StorageTestBase, PackableStorage, ...@@ -29,5 +29,5 @@ class PackableTests(ZODBTestCase, StorageTestBase, PackableStorage,
if __name__ == "__main__": if __name__ == "__main__":
suite = unittest.makeSuite(PackableTests, 'check') suite = unittest.makeSuite(PackableTests, 'check')
unittest.TextTestRunner().run(suite) unittest.main(defaultTest='suite')
...@@ -26,5 +26,5 @@ class PersistentTests(ZODBTestCase, StorageTestBase, PersistentStorage): ...@@ -26,5 +26,5 @@ class PersistentTests(ZODBTestCase, StorageTestBase, PersistentStorage):
if __name__ == "__main__": if __name__ == "__main__":
suite = unittest.makeSuite(PersistentTests, 'check') suite = unittest.makeSuite(PersistentTests, 'check')
unittest.TextTestRunner().run(suite) unittest.main(defaultTest='suite')
...@@ -26,5 +26,5 @@ class ReadOnlyTests(ZODBTestCase, StorageTestBase, ReadOnlyStorage): ...@@ -26,5 +26,5 @@ class ReadOnlyTests(ZODBTestCase, StorageTestBase, ReadOnlyStorage):
if __name__ == "__main__": if __name__ == "__main__":
suite = unittest.makeSuite(ReadOnlyTests, 'check') suite = unittest.makeSuite(ReadOnlyTests, 'check')
unittest.TextTestRunner().run(suite) unittest.main(defaultTest='suite')
...@@ -26,5 +26,5 @@ class RevisionTests(ZODBTestCase, StorageTestBase, RevisionStorage): ...@@ -26,5 +26,5 @@ class RevisionTests(ZODBTestCase, StorageTestBase, RevisionStorage):
if __name__ == "__main__": if __name__ == "__main__":
suite = unittest.makeSuite(RevisionTests, 'check') suite = unittest.makeSuite(RevisionTests, 'check')
unittest.TextTestRunner().run(suite) unittest.main(defaultTest='suite')
...@@ -26,5 +26,5 @@ class SynchronizationTests(ZODBTestCase, StorageTestBase, SynchronizedStorage): ...@@ -26,5 +26,5 @@ class SynchronizationTests(ZODBTestCase, StorageTestBase, SynchronizedStorage):
if __name__ == "__main__": if __name__ == "__main__":
suite = unittest.makeSuite(SynchronizationTests, 'check') suite = unittest.makeSuite(SynchronizationTests, 'check')
unittest.TextTestRunner().run(suite) unittest.main(defaultTest='suite')
...@@ -28,5 +28,5 @@ class UndoTests(ZODBTestCase, StorageTestBase, TransactionalUndoStorage, ...@@ -28,5 +28,5 @@ class UndoTests(ZODBTestCase, StorageTestBase, TransactionalUndoStorage,
if __name__ == "__main__": if __name__ == "__main__":
suite = unittest.makeSuite(UndoTests, 'check') suite = unittest.makeSuite(UndoTests, 'check')
unittest.TextTestRunner().run(suite) unittest.main(defaultTest='suite')
...@@ -29,5 +29,5 @@ class VersionTests(ZODBTestCase, StorageTestBase, VersionStorage, ...@@ -29,5 +29,5 @@ class VersionTests(ZODBTestCase, StorageTestBase, VersionStorage,
if __name__ == "__main__": if __name__ == "__main__":
suite = unittest.makeSuite(VersionTests, 'check') suite = unittest.makeSuite(VersionTests, 'check')
unittest.TextTestRunner().run(suite) unittest.main(defaultTest='suite')
...@@ -25,4 +25,4 @@ class NEOZODBTests(ZODBTestCase, testZODB.ZODBTests): ...@@ -25,4 +25,4 @@ class NEOZODBTests(ZODBTestCase, testZODB.ZODBTests):
if __name__ == "__main__": if __name__ == "__main__":
suite = unittest.makeSuite(NEOZODBTests, 'check') suite = unittest.makeSuite(NEOZODBTests, 'check')
unittest.TextTestRunner().run(suite) unittest.main(defaultTest='suite')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment