Code Review
/
pti
/
o2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Docs: update the container image version of the example
[pti/o2.git]
/
tests
/
unit
/
test_alarm.py
diff --git
a/tests/unit/test_alarm.py
b/tests/unit/test_alarm.py
index
0c0b3e5
..
1503d09
100644
(file)
--- a/
tests/unit/test_alarm.py
+++ b/
tests/unit/test_alarm.py
@@
-314,7
+314,12
@@
def test_probe_new_alarm():
bus = create_alarm_fake_bus(fakeuow)
fakeClient = FakeAlarmClient()
alarmwatcher = AlarmWatcher(fakeClient, bus)
bus = create_alarm_fake_bus(fakeuow)
fakeClient = FakeAlarmClient()
alarmwatcher = AlarmWatcher(fakeClient, bus)
- cmds = alarmwatcher.probe()
+ parent = type('obj', (object,), {
+ 'data': type('obj', (object,), {
+ 'id': 'test_parent_id',
+ 'res_pool_id': 'test_res_pool'
+ })})
+ cmds = alarmwatcher.probe(parent)
assert cmds is not None
assert len(cmds) == 1
assert cmds[0].data.name == "alarm"
assert cmds is not None
assert len(cmds) == 1
assert cmds[0].data.name == "alarm"