1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#!/bin/sh
test_dir=$(cd $(dirname $0) && pwd)
source "$test_dir/setup.sh"
oneTimeSetUp() {
rm -rf "$WORKON_HOME"
mkdir -p "$WORKON_HOME"
source "$test_dir/../virtualenvwrapper.sh"
}
oneTimeTearDown() {
rm -rf "$WORKON_HOME"
rm -f "$test_dir/requirements.txt"
}
setUp () {
echo
rm -f "$test_dir/catch_output"
}
test_requirements_file () {
echo "IPy" > "$test_dir/requirements.txt"
mkvirtualenv -r "$test_dir/requirements.txt" "env3" >/dev/null 2>&1
installed=$(pip freeze)
assertTrue "IPy not found in $installed" "pip freeze | grep IPy"
}
. "$test_dir/shunit2"
|