We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36ac03f commit 5f285b7Copy full SHA for 5f285b7
tests/conda/simple/environment.yml
@@ -1,2 +1,3 @@
1
dependencies:
2
- numpy
3
+ - pytest
tests/conda/simple/verify
@@ -1,6 +1,2 @@
-#!/usr/bin/env python
-import sys
-
4
-assert sys.version_info[:2] == (3, 7), sys.version
5
6
-import numpy
+#!/bin/sh
+pytest -v ./verify.py
tests/conda/simple/verify.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python
+import os
+import sys
+
+def test_sys_version():
+ assert sys.version_info[:2] == (3, 7)
7
8
+def test_numpy():
9
+ import numpy
10
11
+def test_conda_activated():
12
+ assert os.environ.get("CONDA_PREFIX") == os.environ["NB_PYTHON_PREFIX"], dict(os.environ)
0 commit comments