Merge pull request #63 from YunoHost/yet-another-python3-migration

yet another python3 migration
This commit is contained in:
Alexandre Aubin 2021-01-27 03:01:08 +01:00 committed by GitHub
commit 22b937de24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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