projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Feature 10239: Distributed VCA
[osm/N2VC.git]
/
n2vc
/
tests
/
unit
/
test_juju_watcher.py
diff --git
a/n2vc/tests/unit/test_juju_watcher.py
b/n2vc/tests/unit/test_juju_watcher.py
index
d333b33
..
5f81274
100644
(file)
--- a/
n2vc/tests/unit/test_juju_watcher.py
+++ b/
n2vc/tests/unit/test_juju_watcher.py
@@
-45,6
+45,7
@@
class JujuWatcherTest(asynctest.TestCase):
def test_model_watcher(self, allwatcher):
tests = Deltas
allwatcher.return_value = FakeWatcher()
def test_model_watcher(self, allwatcher):
tests = Deltas
allwatcher.return_value = FakeWatcher()
+ n2vc = AsyncMock()
for test in tests:
with self.assertRaises(asyncio.TimeoutError):
allwatcher.return_value.delta_to_return = [test.delta]
for test in tests:
with self.assertRaises(asyncio.TimeoutError):
allwatcher.return_value.delta_to_return = [test.delta]
@@
-55,12
+56,12
@@
class JujuWatcherTest(asynctest.TestCase):
test.filter.entity_type,
timeout=0,
db_dict={"something"},
test.filter.entity_type,
timeout=0,
db_dict={"something"},
- n2vc=self.n2vc,
+ n2vc=n2vc,
+ vca_id=None,
)
)
)
)
- self.assertEqual(self.n2vc.last_written_values, test.db.data)
- self.n2vc.last_written_values = None
+ n2vc.write_app_status_to_db.assert_called()
@mock.patch("n2vc.juju_watcher.asyncio.wait")
def test_wait_for(self, wait):
@mock.patch("n2vc.juju_watcher.asyncio.wait")
def test_wait_for(self, wait):