Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
f4555db2
Commit
f4555db2
authored
Jul 08, 2008
by
Guido Trotter
Browse files
mocks: create a FakeContext object
This will be passed to FakeLUs Reviewed-by: iustinp
parent
0b097284
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/mocks.py
View file @
f4555db2
...
...
@@ -67,3 +67,12 @@ class FakeProc:
def
LogInfo
(
self
,
msg
):
pass
class
FakeContext
:
"""Fake context object"""
def
__init__
(
self
):
self
.
cfg
=
FakeConfig
()
# TODO: decide what features a mock Ganeti Lock Manager must have
self
.
GLM
=
None
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