Commit 7347d375 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Romain Courteaud

test_cli: Fix test, initialize Slap Connection

parent 574d9aa0
...@@ -89,6 +89,7 @@ class CliMixin(unittest.TestCase): ...@@ -89,6 +89,7 @@ class CliMixin(unittest.TestCase):
def setUp(self): def setUp(self):
slap = slapos.slap.slap() slap = slapos.slap.slap()
self.logger = create_autospec(logging.Logger) self.logger = create_autospec(logging.Logger)
slap.initializeConnection("http://127.0.0.1:80/")
self.local = {'slap': slap, 'product': SoftwareProductCollection(self.logger, slap)} self.local = {'slap': slap, 'product': SoftwareProductCollection(self.logger, slap)}
self.conf = create_autospec(ClientConfig) self.conf = create_autospec(ClientConfig)
self.sign_cert_list = signature_certificate_list self.sign_cert_list = signature_certificate_list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment