X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tests%2Funit%2Ftest_watcher.py;fp=tests%2Funit%2Ftest_watcher.py;h=c4b134db4b0576af6d7df081ef7398e8610fecc4;hb=f73c8e3b01b8f5b7438ba544870e06d8f30cdea0;hp=8c1aface3a6cca642c4df78ac27e77fef372175f;hpb=71f8155b3b60befb21aabaffe0b0cf4d940eda61;p=pti%2Fo2.git diff --git a/tests/unit/test_watcher.py b/tests/unit/test_watcher.py index 8c1afac..c4b134d 100644 --- a/tests/unit/test_watcher.py +++ b/tests/unit/test_watcher.py @@ -77,7 +77,6 @@ class FakeOcloudRepo(OcloudRepository): ocloud1.update_by(ocloud) - class FakeStxObjRepo(StxObjectRepository): def __init__(self): super().__init__() @@ -129,8 +128,8 @@ class FakeUnitOfWork(AbstractUnitOfWork): def create_fake_bus(uow): def update_ocloud( - cmd: commands.UpdateOCloud, - uow: AbstractUnitOfWork): + cmd: commands.UpdateOCloud, + uow: AbstractUnitOfWork): return fakeuow = FakeUnitOfWork() @@ -169,7 +168,7 @@ def test_watchers_worker(): def _targetname(self): return "fakeocloudwatcher" - def _probe(self, parent: object=None): + def _probe(self, parent: object = None): # import pdb; pdb.set_trace() self.fakeOcloudWatcherCounter += 1 # hacking to stop the blocking sched task @@ -177,7 +176,6 @@ def test_watchers_worker(): testedworker.stop() return [] - # fakeRepo = FakeOcloudRepo() fakeuow = FakeUnitOfWork() bus = create_fake_bus(fakeuow)