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
79ead556
Commit
79ead556
authored
Dec 16, 2014
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
transaction._manager: 100% branch coverage.
parent
e1d3bcc0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
transaction/tests/test__manager.py
transaction/tests/test__manager.py
+13
-0
No files found.
transaction/tests/test__manager.py
View file @
79ead556
...
...
@@ -255,6 +255,19 @@ class TransactionManagerTests(unittest.TestCase):
tm
.
get
().
_resources
.
append
(
_Resource
())
self
.
assertTrue
(
tm
.
_retryable
(
Exception
,
object
()))
def
test__retryable_w_multiple
(
self
):
class
_Resource
(
object
):
_should
=
True
def
should_retry
(
self
,
err
):
return
self
.
_should
tm
=
self
.
_makeOne
()
res1
=
_Resource
()
res1
.
_should
=
False
res2
=
_Resource
()
tm
.
get
().
_resources
.
append
(
res1
)
tm
.
get
().
_resources
.
append
(
res2
)
self
.
assertTrue
(
tm
.
_retryable
(
Exception
,
object
()))
# basic tests with two sub trans jars
# really we only need one, so tests for
# sub1 should identical to tests for sub2
...
...
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