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 subscription and notification for resource changes; fix a bug while pserver node...
[pti/o2.git]
/
tests
/
unit
/
test_watcher.py
diff --git
a/tests/unit/test_watcher.py
b/tests/unit/test_watcher.py
index
c4b134d
..
806d20f
100644
(file)
--- a/
tests/unit/test_watcher.py
+++ b/
tests/unit/test_watcher.py
@@
-15,7
+15,7
@@
import time
\r
from datetime import datetime
\r
import json
\r
import time
\r
from datetime import datetime
\r
import json
\r
-from typing import List
\r
+from typing import
Callable,
List
\r
# from o2common.config import config
\r
import uuid
\r
from o2common.service.watcher.base import BaseWatcher, WatcherTree
\r
# from o2common.config import config
\r
import uuid
\r
from o2common.service.watcher.base import BaseWatcher, WatcherTree
\r
@@
-129,7
+129,8
@@
class FakeUnitOfWork(AbstractUnitOfWork):
def create_fake_bus(uow):
\r
def update_ocloud(
\r
cmd: commands.UpdateOCloud,
\r
def create_fake_bus(uow):
\r
def update_ocloud(
\r
cmd: commands.UpdateOCloud,
\r
- uow: AbstractUnitOfWork):
\r
+ uow: AbstractUnitOfWork,
\r
+ publish: Callable):
\r
return
\r
\r
fakeuow = FakeUnitOfWork()
\r
return
\r
\r
fakeuow = FakeUnitOfWork()
\r