Add hook to install packages in hub environment

Required when installing additional authenticators or
spawners
This commit is contained in:
yuvipanda
2019-05-31 16:52:51 -07:00
parent f7c472df5f
commit 77dc6a0e27
4 changed files with 33 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ Test simplest plugin
from ruamel.yaml import YAML
import os
import subprocess
from tljh.config import CONFIG_FILE, USER_ENV_PREFIX
from tljh.config import CONFIG_FILE, USER_ENV_PREFIX, HUB_ENV_PREFIX
yaml = YAML(typ='rt')
@@ -18,7 +18,7 @@ def test_apt_packages():
def test_pip_packages():
"""
Test extra user pip packages are installed
Test extra user & hub pip packages are installed
"""
subprocess.check_call([
f'{USER_ENV_PREFIX}/bin/python3',
@@ -26,6 +26,12 @@ def test_pip_packages():
'import django'
])
subprocess.check_call([
f'{HUB_ENV_PREFIX}/bin/python3',
'-c',
'import there'
])
def test_conda_packages():
"""