comparison test/test_mysql.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 43a1f7fe39f5
children 62de601bdf6f
comparison
equal deleted inserted replaced
5309:20084e2b48c3 5310:efb34cbdba7c
21 from roundup.hyperdb import DatabaseError 21 from roundup.hyperdb import DatabaseError
22 from roundup.backends import get_backend, have_backend 22 from roundup.backends import get_backend, have_backend
23 23
24 from db_test_base import DBTest, ROTest, config, SchemaTest, ClassicInitTest 24 from db_test_base import DBTest, ROTest, config, SchemaTest, ClassicInitTest
25 from db_test_base import ConcurrentDBTest, HTMLItemTest, FilterCacheTest 25 from db_test_base import ConcurrentDBTest, HTMLItemTest, FilterCacheTest
26 from db_test_base import SpecialActionTest
26 27
27 28
28 class mysqlOpener: 29 class mysqlOpener:
29 if have_backend('mysql'): 30 if have_backend('mysql'):
30 module = get_backend('mysql') 31 module = get_backend('mysql')
130 RDBMSTest.setUp(self) 131 RDBMSTest.setUp(self)
131 def tearDown(self): 132 def tearDown(self):
132 RDBMSTest.tearDown(self) 133 RDBMSTest.tearDown(self)
133 mysqlOpener.tearDown(self) 134 mysqlOpener.tearDown(self)
134 135
136 @skip_mysql
137 class mysqlSpecialActionTestCase(mysqlOpener, SpecialActionTest,
138 unittest.TestCase):
139 backend = 'mysql'
140 def setUp(self):
141 mysqlOpener.setUp(self)
142 SpecialActionTest.setUp(self)
143
144 def tearDown(self):
145 SpecialActionTest.tearDown(self)
146 mysqlOpener.tearDown(self)
147
135 # vim: set et sts=4 sw=4 : 148 # vim: set et sts=4 sw=4 :

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