yet another python3 migration

This commit is contained in:
Kay0u 2021-01-27 01:47:42 +01:00
parent a746e27765
commit 4f82959a41
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

10
ynh-dev
View file

@ -356,14 +356,14 @@ function run_tests()
# Pytest and tests dependencies
if ! type "pytest" > /dev/null 2>&1; then
info "> Installing pytest ..."
apt-get install python-pip -y
pip2 install pytest pytest-sugar
apt-get install python3-pip -y
pip3 install pytest pytest-sugar
fi
for DEP in "pytest-mock requests-mock mock"
do
if [ -z "$(pip show $DEP)" ]; then
info "Installing $DEP with pip"
pip2 install $DEP
if [ -z "$(pip3 show $DEP)" ]; then
info "Installing $DEP with pip3"
pip3 install $DEP
fi
done