Fix bug 2036 37/12837/1 v10.1.4
authorDavid Garcia <david.garcia@canonical.com>
Tue, 21 Jun 2022 09:26:57 +0000 (11:26 +0200)
committerbeierlm <mark.beierl@canonical.com>
Mon, 16 Jan 2023 13:40:57 +0000 (14:40 +0100)
The unit tests were failing because of a wrong mock

Change-Id: Ie8fd9f6cf926e0aee72c1cd5b1601c073c9928ba
Signed-off-by: David Garcia <david.garcia@canonical.com>
(cherry picked from commit 553d1b7cf256eb95f8fdb9822a23ac755e1764f3)

n2vc/tests/unit/test_libjuju.py

index 918a2fb..f590057 100644 (file)
@@ -58,7 +58,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(
             **{