Add test for environment.yml + --target-repo-dir

conda sometimes puts stuff in $HOME - specifically under .conda/ -
that might cause package installs to fail due to permission mismatches.

Ref https://github.com/jupyter/repo2docker/issues/604
pull/603/head
yuvipanda 2019-03-04 21:32:53 +05:30
rodzic 92239e20c3
commit e0fcd4a55d
4 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -0,0 +1,2 @@
dependencies:
- numpy

Wyświetl plik

@ -7,4 +7,7 @@ assert sys.executable == '/srv/conda/bin/python'
# Repo should be in /srv/repo
assert os.path.exists('/srv/repo/verify')
assert os.path.abspath(__file__) == '/srv/repo/verify'
assert os.path.abspath(__file__) == '/srv/repo/verify'
# We should be able to import the package in environment.yml
import numpy