Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
transaction
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
transaction
Commits
12a5e6a0
Commit
12a5e6a0
authored
Dec 18, 2012
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coverage for NoRollbackSavepoint.
parent
9c948fac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
transaction/tests/test__transaction.py
transaction/tests/test__transaction.py
+21
-0
No files found.
transaction/tests/test__transaction.py
View file @
12a5e6a0
...
...
@@ -1302,6 +1302,26 @@ class AbortSavepointTests(unittest.TestCase):
self
.
assertTrue
(
txn
.
_unjoin
is
dm
)
class
NoRollbackSavepointTests
(
unittest
.
TestCase
):
def
_getTargetClass
(
self
):
from
transaction._transaction
import
NoRollbackSavepoint
return
NoRollbackSavepoint
def
_makeOne
(
self
,
datamanager
):
return
self
.
_getTargetClass
()(
datamanager
)
def
test_ctor
(
self
):
dm
=
object
()
nrsp
=
self
.
_makeOne
(
dm
)
self
.
assertTrue
(
nrsp
.
datamanager
is
dm
)
def
test_rollback
(
self
):
dm
=
object
()
nrsp
=
self
.
_makeOne
(
dm
)
self
.
assertRaises
(
TypeError
,
nrsp
.
rollback
)
class
MiscellaneousTests
(
unittest
.
TestCase
):
def
test_BBB_join
(
self
):
...
...
@@ -1414,5 +1434,6 @@ def test_suite():
unittest
.
makeSuite
(
DataManagerAdapterTests
),
unittest
.
makeSuite
(
SavepointTests
),
unittest
.
makeSuite
(
AbortSavepointTests
),
unittest
.
makeSuite
(
NoRollbackSavepointTests
),
unittest
.
makeSuite
(
MiscellaneousTests
),
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment