@nox.session(python=PYTHON_VERSIONS)
def test_core(session):
    _upgrade_basic(session)
    install_hydra(session, INSTALL_COMMAND)
    session.install('pytest')
    if (not SKIP_CORE_TESTS):
        run_pytest(session, 'build_helpers', 'tests', *session.posargs)
    else:
        session.log('Skipping Hydra core tests')
    apps = _get_standalone_apps_dirs()
    session.log('Testing standalone apps')
    for subdir in apps:
        session.chdir(subdir)
        session.run(*INSTALL_COMMAND, '.', silent=SILENT)
        run_pytest(session, '.')
    session.chdir(BASE)
    test_plugins_in_directory(session, install_cmd=INSTALL_COMMAND, directory='examples/plugins', test_hydra_core=False)
@nox.session(python=PYTHON_VERSIONS)
def test_core(session):
    _upgrade_basic(session)
    install_hydra(session, INSTALL_COMMAND)
    session.install('pytest')
    if (not SKIP_CORE_TESTS):
        run_pytest(session, 'build_helpers', 'tests', *session.posargs)
    else:
        session.log('Skipping Hydra core tests')
    apps = _get_standalone_apps_dirs()
    session.log('Testing standalone apps')
    for subdir in apps:
        session.chdir(subdir)
        session.run(*INSTALL_COMMAND, '.', silent=SILENT)
        run_pytest(session, '.')
    session.chdir(BASE)
    test_plugins_in_directory(session, install_cmd=INSTALL_COMMAND, directory='examples/plugins', test_hydra_core=False)