Use --break-system-packages when installing test dependencies with pip because we aint running them in a venv

This commit is contained in:
Alexandre Aubin 2023-11-12 16:09:37 +01:00
parent 804c95f0a2
commit cd8169bbfe

View file

@ -439,13 +439,13 @@ function run_tests()
if ! type "pytest" > /dev/null 2>&1; then
info "> Installing pytest ..."
apt-get install python3-pip -y
pip3 install pytest pytest-sugar
pip3 install pytest pytest-sugar --break-system-packages
fi
for DEP in "pytest-mock requests-mock mock"
do
if [ -z "$(pip3 show $DEP)" ]; then
info "Installing $DEP with pip3"
pip3 install $DEP
pip3 install $DEP --break-system-packages
fi
done