How to use _normal_lookup method in tox

Best Python code snippet using tox_python

venv.py

Source:venv.py Github

copy

Full Screen

...80 return str(path)81 if venv:82 path = self._venv_lookup_and_check_external_whitelist(name)83 else:84 path = self._normal_lookup(name)85 if path is None:86 raise tox.exception.InvocationError(87 "could not find executable %r" % (name,))88 return str(path) # will not be rewritten for reporting89 def _venv_lookup_and_check_external_whitelist(self, name):90 path = self._venv_lookup(name)91 if path is None:92 path = self._normal_lookup(name)93 if path is not None:94 self._check_external_allowed_and_warn(path)95 return path96 def _venv_lookup(self, name):97 return py.path.local.sysfind(name, paths=[self.envconfig.envbindir])98 def _normal_lookup(self, name):99 return py.path.local.sysfind(name)100 def _check_external_allowed_and_warn(self, path):101 if not self.is_allowed_external(path):102 self.session.report.warning(103 "test command found but not installed in testenv\n"104 " cmd: %s\n"105 " env: %s\n"106 "Maybe you forgot to specify a dependency? "107 "See also the whitelist_externals envconfig setting." % (108 path, self.envconfig.envdir))109 def is_allowed_external(self, p):110 tryadd = [""]111 if sys.platform == "win32":112 tryadd += [...

Full Screen

Full Screen

Automation Testing Tutorials

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.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run tox automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful