diff test/test_anydbm.py @ 5310:efb34cbdba7c

Add (currently failing) test for atomic actions Actions via the web-interface can have several database-modifying instructions. These should be atomic, i.e., either all should go in or none. This is currently not the case due to commit calls from OTK handling (CSRF-protection).
author Ralf Schlatterbeck <rsc@runtux.com>
date Mon, 06 Nov 2017 09:26:59 +0100
parents 364c54991861
children 62de601bdf6f
line wrap: on
line diff
--- a/test/test_anydbm.py	Wed Oct 25 23:07:35 2017 -0400
+++ b/test/test_anydbm.py	Mon Nov 06 09:26:59 2017 +0100
@@ -19,7 +19,7 @@
 from roundup.backends import get_backend
 
 from db_test_base import DBTest, ROTest, SchemaTest, ClassicInitTest, config
-from db_test_base import HTMLItemTest
+from db_test_base import HTMLItemTest, SpecialActionTest
 
 class anydbmOpener:
     module = get_backend('anydbm')
@@ -52,4 +52,8 @@
 class anydbmSessionTest(anydbmOpener, DBMTest, unittest.TestCase):
     pass
 
+class anydbmSpecialActionTestCase(anydbmOpener, SpecialActionTest,
+                                  unittest.TestCase):
+    backend = 'anydbm'
+
 # vim: set filetype=python ts=4 sw=4 et si

Roundup Issue Tracker: http://roundup-tracker.org/