Commit b7f1d45b authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Łukasz Nowak

caddy-frontend/test: Make getSupervisorRPCServer classmethod

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