Best Python code snippet using avocado_python
app.py
Source:app.py  
...176        """177        return {178            "runnables": self.RUNNABLE_KINDS_CAPABLE,179            "commands": self.get_commands(),180            "configuration_used": self.get_configuration_used_by_runners(),181        }182    def get_runner_from_runnable(self, runnable):183        """184        Returns a runner that is suitable to run the given runnable185        :rtype: instance of class inheriting from :class:`BaseRunner`186        :raises: ValueError if runnable is now supported187        """188        runner = runnable.pick_runner_class()189        if runner is not None:190            return runner()191        raise ValueError(f"Unsupported kind of runnable: {runnable.kind}")192    def get_configuration_used_by_runners(self):193        """Returns the configuration keys used by capable runners.194        :returns: the configuration keys (aka namespaces) used by known runners195        :rtype: list196        """197        config_used = []198        for kind in self.RUNNABLE_KINDS_CAPABLE:199            for ep in pkg_resources.iter_entry_points(200                "avocado.plugins.runnable.runner", kind201            ):202                try:203                    runner = ep.load()204                    config_used += runner.CONFIGURATION_USED205                except ImportError:206                    continue...Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!
