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
Add auditor for resource pool, pserver and cpu/memory/port/interface for pserver...
[pti/o2.git]
/
tests
/
unit
/
test_watcher.py
diff --git
a/tests/unit/test_watcher.py
b/tests/unit/test_watcher.py
index
8c1afac
..
c4b134d
100644
(file)
--- a/
tests/unit/test_watcher.py
+++ b/
tests/unit/test_watcher.py
@@
-77,7
+77,6
@@
class FakeOcloudRepo(OcloudRepository):
ocloud1.update_by(ocloud)
\r
\r
\r
ocloud1.update_by(ocloud)
\r
\r
\r
-
\r
class FakeStxObjRepo(StxObjectRepository):
\r
def __init__(self):
\r
super().__init__()
\r
class FakeStxObjRepo(StxObjectRepository):
\r
def __init__(self):
\r
super().__init__()
\r
@@
-129,8
+128,8
@@
class FakeUnitOfWork(AbstractUnitOfWork):
\r
def create_fake_bus(uow):
\r
def update_ocloud(
\r
\r
def create_fake_bus(uow):
\r
def update_ocloud(
\r
- cmd: commands.UpdateOCloud,
\r
- uow: AbstractUnitOfWork):
\r
+
cmd: commands.UpdateOCloud,
\r
+
uow: AbstractUnitOfWork):
\r
return
\r
\r
fakeuow = FakeUnitOfWork()
\r
return
\r
\r
fakeuow = FakeUnitOfWork()
\r
@@
-169,7
+168,7
@@
def test_watchers_worker():
def _targetname(self):
\r
return "fakeocloudwatcher"
\r
\r
def _targetname(self):
\r
return "fakeocloudwatcher"
\r
\r
- def _probe(self, parent: object
=
None):
\r
+ def _probe(self, parent: object
=
None):
\r
# import pdb; pdb.set_trace()
\r
self.fakeOcloudWatcherCounter += 1
\r
# hacking to stop the blocking sched task
\r
# import pdb; pdb.set_trace()
\r
self.fakeOcloudWatcherCounter += 1
\r
# hacking to stop the blocking sched task
\r
@@
-177,7
+176,6
@@
def test_watchers_worker():
testedworker.stop()
\r
return []
\r
\r
testedworker.stop()
\r
return []
\r
\r
-
\r
# fakeRepo = FakeOcloudRepo()
\r
fakeuow = FakeUnitOfWork()
\r
bus = create_fake_bus(fakeuow)
\r
# fakeRepo = FakeOcloudRepo()
\r
fakeuow = FakeUnitOfWork()
\r
bus = create_fake_bus(fakeuow)
\r