Fix pip uninstall by moving it prior to pip install (#413)

The pip-uninstall step stopped working when it was moved to after
the pip-install step in f27a84e.

This regression was temporarily fixed by part of #397, however that
PR was reverted in #404.

Adds a test to hopefully catch any future regressions :-)

Fixes #393.
This commit is contained in:
Ed Morley
2017-06-14 22:15:52 +01:00
committed by Kenneth Reitz
parent db95cdd3f3
commit cbb718bb8b
3 changed files with 19 additions and 5 deletions
+10
View File
@@ -62,6 +62,16 @@ testPython3() {
assertCapturedSuccess
}
testSmartRequirements() {
local cache_dir="$(mktmpdir)"
compile "requirements-standard" "$cache_dir"
assertFile "requests" ".heroku/python/requirements-declared.txt"
assertCapturedSuccess
compile "psycopg2" "$cache_dir"
assertCaptured "Uninstalling requests"
assertFile "psycopg2" ".heroku/python/requirements-declared.txt"
assertCapturedSuccess
}