From 91aebf299868db45a8632d514034a33318b78306 Mon Sep 17 00:00:00 2001 From: Giulia Naponiello Date: Feb 06 2020 15:44:04 +0000 Subject: Fix tox, take 3 It seems like Flask needs this itsdangerous (seriously) package. But there's a bug in a previous version: https://github.com/pallets/itsdangerous/issues/102 Let's update this package to avoid this embarassing problem. Signed-off-by: Giulia Naponiello --- diff --git a/test-requirements.txt b/test-requirements.txt index 9a8d623..d1d7d81 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -6,3 +6,8 @@ pytest pytest-cov vcrpy tox +# It seems like Flask needs this itsdangerous package. +# But there's a bug in a previous version: +# https://github.com/pallets/itsdangerous/issues/102 +# Let's update this package to avoid this problem. +itsdangerous>=1.1.0 diff --git a/tox.ini b/tox.ini index 8f0eed6..89805e3 100644 --- a/tox.ini +++ b/tox.ini @@ -7,17 +7,18 @@ envlist = py37, flake8, bandit [testenv] +basepython = python3 skip_install = True deps = -r{toxinidir}/test-requirements.txt commands = - py.test \ + python3 -m pytest \ -W "ignore::UserWarning:flask.sessions" \ -W "ignore:You do not have a working installation:UserWarning" \ -W "ignore:inspect.getargspec:DeprecationWarning" \ -W "ignore:This method will be removed in future versions. Use 'parser.read_file()':DeprecationWarning" \ -W "ignore:Use .persist_selectable:DeprecationWarning" \ {posargs} -sitepackages=true +sitepackages = True [testenv:flake8] basepython = python3