def setUp(self): """Execute steps before each tests. Set the server_name_url_url from kytos/topology """ self.server_name_url = 'http://localhost:8181/api/kytos/topology' patch('kytos.core.helpers.run_on_thread', lambda x: x).start() from napps.kytos.topology.main import Main self.addCleanup(patch.stopall) self.napp = Main(get_controller_mock())
def setUp(self): """Execute steps before each tests. Set the server_name_url_url from kytos/topology """ self.server_name_url = 'http://localhost:8181/api/kytos/topology' patch('kytos.core.helpers.run_on_thread', lambda x: x).start() # pylint: disable=import-outside-toplevel from napps.kytos.topology.storehouse import StoreHouse self.addCleanup(patch.stopall) self.napp = StoreHouse(get_controller_mock())