Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Tyagov
neoppod
Commits
3042a1f2
Commit
3042a1f2
authored
Mar 19, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a real node manager.
parent
bfd3fe2f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
neo/tests/client/testMasterHandler.py
neo/tests/client/testMasterHandler.py
+2
-1
No files found.
neo/tests/client/testMasterHandler.py
View file @
3042a1f2
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
import
unittest
import
unittest
from
mock
import
Mock
from
mock
import
Mock
from
..
import
NeoUnitTestBase
from
..
import
NeoUnitTestBase
from
neo.lib.node
import
NodeManager
from
neo.lib.pt
import
PartitionTable
from
neo.lib.pt
import
PartitionTable
from
neo.lib.protocol
import
NodeTypes
,
NodeStates
from
neo.lib.protocol
import
NodeTypes
,
NodeStates
from
neo.client.handlers.master
import
PrimaryBootstrapHandler
from
neo.client.handlers.master
import
PrimaryBootstrapHandler
...
@@ -29,7 +30,7 @@ class MasterHandlerTests(NeoUnitTestBase):
...
@@ -29,7 +30,7 @@ class MasterHandlerTests(NeoUnitTestBase):
super
(
MasterHandlerTests
,
self
).
setUp
()
super
(
MasterHandlerTests
,
self
).
setUp
()
self
.
db
=
Mock
()
self
.
db
=
Mock
()
self
.
app
=
Mock
({
'getDB'
:
self
.
db
})
self
.
app
=
Mock
({
'getDB'
:
self
.
db
})
self
.
app
.
nm
=
Mock
()
self
.
app
.
nm
=
NodeManager
()
self
.
app
.
dispatcher
=
Mock
()
self
.
app
.
dispatcher
=
Mock
()
class
MasterBootstrapHandlerTests
(
MasterHandlerTests
):
class
MasterBootstrapHandlerTests
(
MasterHandlerTests
):
...
...
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