mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
Merge pull request #63 from YunoHost/yet-another-python3-migration
yet another python3 migration
This commit is contained in:
commit
22b937de24
1 changed files with 5 additions and 5 deletions
10
ynh-dev
10
ynh-dev
|
@ -356,14 +356,14 @@ function run_tests()
|
||||||
# Pytest and tests dependencies
|
# Pytest and tests dependencies
|
||||||
if ! type "pytest" > /dev/null 2>&1; then
|
if ! type "pytest" > /dev/null 2>&1; then
|
||||||
info "> Installing pytest ..."
|
info "> Installing pytest ..."
|
||||||
apt-get install python-pip -y
|
apt-get install python3-pip -y
|
||||||
pip2 install pytest pytest-sugar
|
pip3 install pytest pytest-sugar
|
||||||
fi
|
fi
|
||||||
for DEP in "pytest-mock requests-mock mock"
|
for DEP in "pytest-mock requests-mock mock"
|
||||||
do
|
do
|
||||||
if [ -z "$(pip show $DEP)" ]; then
|
if [ -z "$(pip3 show $DEP)" ]; then
|
||||||
info "Installing $DEP with pip"
|
info "Installing $DEP with pip3"
|
||||||
pip2 install $DEP
|
pip3 install $DEP
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue