From 9aa4ec6982541f5425c860010fa87134e58469e6 Mon Sep 17 00:00:00 2001 From: Alberto Contreras Date: Mon, 19 Sep 2022 15:30:54 +0200 Subject: tests: Drop httpretty in favor of responses (#1720) --- tox.ini | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 21527ff3..1286452d 100644 --- a/tox.ini +++ b/tox.ini @@ -165,17 +165,14 @@ commands = {envpython} -X tracemalloc=40 -Wall -m pytest \ tests/unittests} -[lowest-supported-deps] +[testenv:lowest-supported] # Tox is going to install requirements from pip. This is fine for # testing python version compatibility, but when we build cloud-init, we are # building against the dependencies in the OS repo, not pip. The OS # dependencies will generally be older than what is found in pip. # To obtain these versions, check the versions of these libraries -# in the oldest support Ubuntu distro. - -# httpretty isn't included here because python2.7 requires a higher version -# than whats run on bionic, so we need two different definitions. +# in the oldest support Ubuntu distro. Theses versions are from bionic. deps = jinja2==2.10 oauthlib==2.0.6 @@ -193,22 +190,6 @@ deps = # Needed by pytest and default causes failures attrs==17.4.0 responses==0.5.1 - -[testenv:lowest-supported] -# This definition will run on bionic with the version of httpretty -# that runs there -deps = - {[lowest-supported-deps]deps} - httpretty==0.8.14 -commands = {[testenv:py3]commands} - -[testenv:lowest-supported-dev] -# The oldest httpretty version to work with Python 3.7+ is 0.9.5, -# because it is the first to include this commit: -# https://github.com/gabrielfalcao/HTTPretty/commit/5776d97da3992b9071db5e21faf175f6e8729060 -deps = - {[lowest-supported-deps]deps} - httpretty==0.9.5 commands = {[testenv:py3]commands} [testenv:doc] -- cgit v1.2.1