def teardown_class(cls): # Terminate the processes. cls.clerk.terminate() cls.web.terminate() cls.clerk.join(5) cls.web.join(5) del cls.clients, cls.clerk, cls.web # Kill all lingering Azrael processes. killAzrael()
def setup_class(cls): # Kill all lingering Azrael processes. killAzrael() # Start a Clerk and WebServer instance. cls.clerk = azrael.clerk.Clerk() cls.web = azrael.web.WebServer() cls.clerk.start() cls.web.start() # Dibbler. cls.dibbler = azrael.dibbler.Dibbler() # Create a ZMQ- and Websocket client. client_zmq = azrael.client.Client() client_ws = azrael.wsclient.WSClient( ip=config.addr_webserver, port=config.port_webserver, timeout=1) assert client_ws.ping() cls.clients = {'ZeroMQ': client_zmq, 'Websocket': client_ws}
def teardown_class(cls): killAzrael()
def setup_class(cls): killAzrael() cls.igor = azrael.igor.Igor()
def setup_class(cls): killAzrael() azrael.datastore.init(flush=True) cls.igor = azrael.igor.Igor()