Improve Pipfile + requirements.txt test

Previously we did not check that requirements.txt was ignored properly,
now we do.
pull/649/head
Erik Sundell 2019-04-21 17:33:37 +02:00
rodzic d019f4980a
commit e107360d97
2 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

@ -4,7 +4,7 @@ verify_ssl = true
name = "pypi"
[packages]
requests = "*"
pypi-pkg-test = "*"
[dev-packages]
there = "*"

Wyświetl plik

@ -1,3 +1,11 @@
#!/usr/bin/env python
import requests
import pypi_pkg_test
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.")