@nox.session(python=PYTHON_VERSIONS)
def test_tools(session):
    install_cmd = ['pip', 'install']
    _upgrade_basic(session)
    session.install('pytest')
    install_hydra(session, install_cmd)
    tools = [x for x in sorted(os.listdir(os.path.join(BASE, 'tools'))) if (not os.path.isfile(x))]
    for tool in tools:
        tool_path = os.path.join('tools', tool)
        session.chdir(BASE)
        if (Path(tool_path) / 'setup.py').exists():
            cmd = (list(install_cmd) + ['-e', tool_path])
            session.run(*cmd, silent=SILENT)
            session.run('pytest', tool_path)
    session.chdir(BASE)
@nox.session(python=PYTHON_VERSIONS)
def test_tools(session):
    install_cmd = ['pip', 'install']
    _upgrade_basic(session)
    session.install('pytest')
    install_hydra(session, install_cmd)
    tools = [x for x in sorted(os.listdir(os.path.join(BASE, 'tools'))) if (not os.path.isfile(x))]
    for tool in tools:
        tool_path = os.path.join('tools', tool)
        session.chdir(BASE)
        if (Path(tool_path) / 'setup.py').exists():
            cmd = (list(install_cmd) + ['-e', tool_path])
            session.run(*cmd, silent=SILENT)
            session.run('pytest', tool_path)
    session.chdir(BASE)