[Neo-report] r1784 gregory - /trunk/neo/tests/zodb/

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 16 17:42:59 CET 2010


Author: gregory
Date: Tue Feb 16 17:42:59 2010
New Revision: 1784

Log:
Support all ZODB tests to run with NEO.

Added:
    trunk/neo/tests/zodb/testBasic.py
    trunk/neo/tests/zodb/testConflict.py
    trunk/neo/tests/zodb/testHistory.py
    trunk/neo/tests/zodb/testIterator.py
    trunk/neo/tests/zodb/testMT.py
    trunk/neo/tests/zodb/testPack.py
    trunk/neo/tests/zodb/testPersistent.py
    trunk/neo/tests/zodb/testReadOnly.py
    trunk/neo/tests/zodb/testRevision.py
    trunk/neo/tests/zodb/testSynchronization.py
    trunk/neo/tests/zodb/testUndo.py
    trunk/neo/tests/zodb/testVersion.py

Added: trunk/neo/tests/zodb/testBasic.py
==============================================================================
--- trunk/neo/tests/zodb/testBasic.py (added)
+++ trunk/neo/tests/zodb/testBasic.py [iso-8859-1] Tue Feb 16 17:42:59 2010
@@ -1,0 +1,30 @@
+#
+# Copyright (C) 2009-2010  Nexedi SA
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+import unittest
+from ZODB.tests.BasicStorage import BasicStorage
+from ZODB.tests.StorageTestBase import StorageTestBase
+
+from neo.tests.zodb import ZODBTestCase
+
+class BasicTests(ZODBTestCase, StorageTestBase, BasicStorage):
+    pass
+
+if __name__ == "__main__":
+    suite = unittest.makeSuite(BasicTests, 'check')
+    unittest.TextTestRunner().run(suite)
+

Added: trunk/neo/tests/zodb/testConflict.py
==============================================================================
--- trunk/neo/tests/zodb/testConflict.py (added)
+++ trunk/neo/tests/zodb/testConflict.py [iso-8859-1] Tue Feb 16 17:42:59 2010
@@ -1,0 +1,30 @@
+#
+# Copyright (C) 2009-2010  Nexedi SA
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+import unittest
+from ZODB.tests.ConflictResolution import ConflictResolvingStorage
+from ZODB.tests.StorageTestBase import StorageTestBase
+
+from neo.tests.zodb import ZODBTestCase
+
+class ConflictTests(ZODBTestCase, StorageTestBase, ConflictResolvingStorage):
+    pass
+
+if __name__ == "__main__":
+    suite = unittest.makeSuite(ConflictTests, 'check')
+    unittest.TextTestRunner().run(suite)
+

Added: trunk/neo/tests/zodb/testHistory.py
==============================================================================
--- trunk/neo/tests/zodb/testHistory.py (added)
+++ trunk/neo/tests/zodb/testHistory.py [iso-8859-1] Tue Feb 16 17:42:59 2010
@@ -1,0 +1,30 @@
+#
+# Copyright (C) 2009-2010  Nexedi SA
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+import unittest
+from ZODB.tests.HistoryStorage import HistoryStorage
+from ZODB.tests.StorageTestBase import StorageTestBase
+
+from neo.tests.zodb import ZODBTestCase
+
+class HistoryTests(ZODBTestCase, StorageTestBase, HistoryStorage):
+    pass
+
+if __name__ == "__main__":
+    suite = unittest.makeSuite(HistoryTests, 'check')
+    unittest.TextTestRunner().run(suite)
+

Added: trunk/neo/tests/zodb/testIterator.py
==============================================================================
--- trunk/neo/tests/zodb/testIterator.py (added)
+++ trunk/neo/tests/zodb/testIterator.py [iso-8859-1] Tue Feb 16 17:42:59 2010
@@ -1,0 +1,32 @@
+#
+# Copyright (C) 2009-2010  Nexedi SA
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+import unittest
+from ZODB.tests.IteratorStorage import IteratorStorage
+from ZODB.tests.IteratorStorage import ExtendedIteratorStorage
+from ZODB.tests.StorageTestBase import StorageTestBase
+
+from neo.tests.zodb import ZODBTestCase
+
+class IteratorTests(ZODBTestCase, StorageTestBase, IteratorStorage,
+        ExtendedIteratorStorage):
+    pass
+
+if __name__ == "__main__":
+    suite = unittest.makeSuite(IteratorTests, 'check')
+    unittest.TextTestRunner().run(suite)
+

Added: trunk/neo/tests/zodb/testMT.py
==============================================================================
--- trunk/neo/tests/zodb/testMT.py (added)
+++ trunk/neo/tests/zodb/testMT.py [iso-8859-1] Tue Feb 16 17:42:59 2010
@@ -1,0 +1,30 @@
+#
+# Copyright (C) 2009-2010  Nexedi SA
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+import unittest
+from ZODB.tests.MTStorage import MTStorage
+from ZODB.tests.StorageTestBase import StorageTestBase
+
+from neo.tests.zodb import ZODBTestCase
+
+class MTTests(ZODBTestCase, StorageTestBase, MTStorage):
+    pass
+
+if __name__ == "__main__":
+    suite = unittest.makeSuite(MTTests, 'check')
+    unittest.TextTestRunner().run(suite)
+

Added: trunk/neo/tests/zodb/testPack.py
==============================================================================
--- trunk/neo/tests/zodb/testPack.py (added)
+++ trunk/neo/tests/zodb/testPack.py [iso-8859-1] Tue Feb 16 17:42:59 2010
@@ -1,0 +1,33 @@
+
+#
+# Copyright (C) 2009-2010  Nexedi SA
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+import unittest
+from ZODB.tests.PackableStorage import PackableStorage
+from ZODB.tests.PackableStorage import PackableUndoStorage
+from ZODB.tests.StorageTestBase import StorageTestBase
+
+from neo.tests.zodb import ZODBTestCase
+
+class PackableTests(ZODBTestCase, StorageTestBase, PackableStorage,
+        PackableUndoStorage):
+    pass
+
+if __name__ == "__main__":
+    suite = unittest.makeSuite(PackableTests, 'check')
+    unittest.TextTestRunner().run(suite)
+

Added: trunk/neo/tests/zodb/testPersistent.py
==============================================================================
--- trunk/neo/tests/zodb/testPersistent.py (added)
+++ trunk/neo/tests/zodb/testPersistent.py [iso-8859-1] Tue Feb 16 17:42:59 2010
@@ -1,0 +1,30 @@
+#
+# Copyright (C) 2009-2010  Nexedi SA
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+import unittest
+from ZODB.tests.PersistentStorage import PersistentStorage
+from ZODB.tests.StorageTestBase import StorageTestBase
+
+from neo.tests.zodb import ZODBTestCase
+
+class PersistentTests(ZODBTestCase, StorageTestBase, PersistentStorage):
+    pass
+
+if __name__ == "__main__":
+    suite = unittest.makeSuite(PersistentTests, 'check')
+    unittest.TextTestRunner().run(suite)
+

Added: trunk/neo/tests/zodb/testReadOnly.py
==============================================================================
--- trunk/neo/tests/zodb/testReadOnly.py (added)
+++ trunk/neo/tests/zodb/testReadOnly.py [iso-8859-1] Tue Feb 16 17:42:59 2010
@@ -1,0 +1,30 @@
+#
+# Copyright (C) 2009-2010  Nexedi SA
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+import unittest
+from ZODB.tests.ReadOnlyStorage import ReadOnlyStorage
+from ZODB.tests.StorageTestBase import StorageTestBase
+
+from neo.tests.zodb import ZODBTestCase
+
+class ReadOnlyTests(ZODBTestCase, StorageTestBase, ReadOnlyStorage):
+    pass
+
+if __name__ == "__main__":
+    suite = unittest.makeSuite(ReadOnlyTests, 'check')
+    unittest.TextTestRunner().run(suite)
+

Added: trunk/neo/tests/zodb/testRevision.py
==============================================================================
--- trunk/neo/tests/zodb/testRevision.py (added)
+++ trunk/neo/tests/zodb/testRevision.py [iso-8859-1] Tue Feb 16 17:42:59 2010
@@ -1,0 +1,30 @@
+#
+# Copyright (C) 2009-2010  Nexedi SA
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+import unittest
+from ZODB.tests.RevisionStorage import RevisionStorage
+from ZODB.tests.StorageTestBase import StorageTestBase
+
+from neo.tests.zodb import ZODBTestCase
+
+class RevisionTests(ZODBTestCase, StorageTestBase, RevisionStorage):
+    pass
+
+if __name__ == "__main__":
+    suite = unittest.makeSuite(RevisionTests, 'check')
+    unittest.TextTestRunner().run(suite)
+

Added: trunk/neo/tests/zodb/testSynchronization.py
==============================================================================
--- trunk/neo/tests/zodb/testSynchronization.py (added)
+++ trunk/neo/tests/zodb/testSynchronization.py [iso-8859-1] Tue Feb 16 17:42:59 2010
@@ -1,0 +1,30 @@
+#
+# Copyright (C) 2009-2010  Nexedi SA
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+import unittest
+from ZODB.tests.StorageTestBase import StorageTestBase
+from ZODB.tests.Synchronization import SynchronizedStorage
+
+from neo.tests.zodb import ZODBTestCase
+
+class SynchronizationTests(ZODBTestCase, StorageTestBase, SynchronizedStorage):
+    pass
+
+if __name__ == "__main__":
+    suite = unittest.makeSuite(SynchronizationTests, 'check')
+    unittest.TextTestRunner().run(suite)
+

Added: trunk/neo/tests/zodb/testUndo.py
==============================================================================
--- trunk/neo/tests/zodb/testUndo.py (added)
+++ trunk/neo/tests/zodb/testUndo.py [iso-8859-1] Tue Feb 16 17:42:59 2010
@@ -1,0 +1,32 @@
+#
+# Copyright (C) 2009-2010  Nexedi SA
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+import unittest
+from ZODB.tests.StorageTestBase import StorageTestBase
+from ZODB.tests.TransactionalUndoStorage import TransactionalUndoStorage
+from ZODB.tests.ConflictResolution import ConflictResolvingTransUndoStorage
+
+from neo.tests.zodb import ZODBTestCase
+
+class UndoTests(ZODBTestCase, StorageTestBase, TransactionalUndoStorage, 
+        ConflictResolvingTransUndoStorage):
+    pass
+
+if __name__ == "__main__":
+    suite = unittest.makeSuite(UndoTests, 'check')
+    unittest.TextTestRunner().run(suite)
+

Added: trunk/neo/tests/zodb/testVersion.py
==============================================================================
--- trunk/neo/tests/zodb/testVersion.py (added)
+++ trunk/neo/tests/zodb/testVersion.py [iso-8859-1] Tue Feb 16 17:42:59 2010
@@ -1,0 +1,33 @@
+#
+# Copyright (C) 2009-2010  Nexedi SA
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+import unittest
+from ZODB.tests.VersionStorage import VersionStorage
+from ZODB.tests.TransactionalUndoVersionStorage import \
+         TransactionalUndoVersionStorage
+from ZODB.tests.StorageTestBase import StorageTestBase
+
+from neo.tests.zodb import ZODBTestCase
+
+class VersionTests(ZODBTestCase, StorageTestBase, VersionStorage,
+        TransactionalUndoVersionStorage):
+    pass
+
+if __name__ == "__main__":
+    suite = unittest.makeSuite(VersionTests, 'check')
+    unittest.TextTestRunner().run(suite)
+





More information about the Neo-report mailing list