test `conda install` in the default env in postBuild
ADD
tests/conda/default-env/postBuild
+#!/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

ADD
tests/conda/default-env/verify
+#!/bin/sh
+pytest -v ./verify.py

ADD
tests/conda/default-env/verify.py
+#!/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

test `conda install` in the default env in postBuild