verify conda activation (and thereby entrypoint)
in tests/conda/simple
use pytest for better error reporting
MODIFY
tests/conda/simple/environment.yml
tests/conda/simple/environment.yml
dependencies:
- numpy
+ - pytest

MODIFY
tests/conda/simple/verify
tests/conda/simple/verify
-#!/usr/bin/env python
-import sys
-
-assert sys.version_info[:2] == (3, 7), sys.version
-
-import numpy
+#!/bin/sh
+pytest -v ./verify.py

ADD
tests/conda/simple/verify.py
+#!/usr/bin/env python
+import os
+import sys
+
+def test_sys_version():
+ assert sys.version_info[:2] == (3, 7)
+
+def test_numpy():
+ import numpy
+
+def test_conda_activated():
+ assert os.environ.get("CONDA_PREFIX") == os.environ["NB_PYTHON_PREFIX"], dict(os.environ)

verify conda activation (and thereby entrypoint)

in tests/conda/simple

use pytest for better error reporting