Commit d55d340c authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Matevz Golob

caddy-frontend/test: Make getSupervisorRPCServer classmethod

parent 357c64e1
......@@ -99,7 +99,8 @@ class SlapOSInstanceTestCase(unittest.TestCase):
return "default"
# Utility methods.
def getSupervisorRPCServer(self):
@classmethod
def getSupervisorRPCServer(cls):
"""Returns a XML-RPC connection to the supervisor used by slapos node
Refer to http://supervisord.org/api.html for details of available methods.
......@@ -112,7 +113,7 @@ class SlapOSInstanceTestCase(unittest.TestCase):
None,
# XXX hardcoded socket path
serverurl="unix://{working_directory}/inst/supervisord.socket".format(
**self.config)))
**cls.config)))
# Unittest methods
@classmethod
......
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