kopia lustrzana https://github.com/jupyterhub/repo2docker
Improve Pipfile + requirements.txt test
Previously we did not check that requirements.txt was ignored properly, now we do.pull/649/head
rodzic
d019f4980a
commit
e107360d97
|
@ -4,7 +4,7 @@ verify_ssl = true
|
||||||
name = "pypi"
|
name = "pypi"
|
||||||
|
|
||||||
[packages]
|
[packages]
|
||||||
requests = "*"
|
pypi-pkg-test = "*"
|
||||||
|
|
||||||
[dev-packages]
|
[dev-packages]
|
||||||
there = "*"
|
there = "*"
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import requests
|
import pypi_pkg_test
|
||||||
import there
|
import there
|
||||||
|
|
||||||
|
try:
|
||||||
|
import numpy
|
||||||
|
except ImportError:
|
||||||
|
# We want an ImportError to be thrown for this test to pass
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
raise Exception("'numpy' shouldn't have been installed! It was listed in requirements.txt but not in the Pipfile that has precedence.")
|
||||||
|
|
Ładowanie…
Reference in New Issue