kopia lustrzana https://github.com/jupyterhub/repo2docker
test `conda install` in the default env in postBuild
rodzic
f5999a0b61
commit
9bf2e13832
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# install pytest with conda in the default env (should be $KERNEL_PYTHON_PREFIX)
|
||||||
|
conda install -yq pytest
|
||||||
|
# install there with pip (should be the same)
|
||||||
|
pip install there
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
pytest -v ./verify.py
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
def test_sys_prefix():
|
||||||
|
# verify that pytest was installed in the notebook env
|
||||||
|
assert sys.prefix == os.environ["KERNEL_PYTHON_PREFIX"]
|
||||||
|
|
||||||
|
|
||||||
|
def test_there():
|
||||||
|
# verify that there was installed in the notebook env
|
||||||
|
import there
|
Ładowanie…
Reference in New Issue