Fix bug 2036 33/12233/1
authorDavid Garcia <david.garcia@canonical.com>
Tue, 21 Jun 2022 09:26:57 +0000 (11:26 +0200)
committerDavid Garcia <david.garcia@canonical.com>
Tue, 21 Jun 2022 09:26:57 +0000 (11:26 +0200)
The unit tests were failing because of a wrong mock

Change-Id: Ie8fd9f6cf926e0aee72c1cd5b1601c073c9928ba
Signed-off-by: David Garcia <david.garcia@canonical.com>
n2vc/tests/unit/test_libjuju.py

index 67cd19f..e7f43ab 100644 (file)
@@ -60,7 +60,7 @@ class LibjujuTestCase(asynctest.TestCase):
         self.loop = asyncio.get_event_loop()
         self.db = Mock()
         mock_base64_to_cacert.return_value = cacert
-        Connection._load_vca_connection_data = Mock()
+        Connection._load_vca_connection_data = Mock()
         vca_connection = Connection(AsyncMock())
         vca_connection._data = ConnectionData(
             **{