Convert httpretty to requests-mock

HTTPretty was great particularly when we were having to deal with both
httplib and requests together. Since that time the library itself has
caused a number of problems including backwards incompatible changes,
broken releases and some dependency issues that make it difficult to
package. There are also issues with memcache tests or anything else
that also tries to use the socket.

requests-mock does a very similar job, with a very similar interface
however it targets only requests and so doesn't have the same socket
issues and will be a much easier dependency on packagers.

keystoneclient is the first of a number of clients that will do the
changeover.

Change-Id: Ida6e5feb71b6ff6662fb24b9fa6535b039c99d96
This commit is contained in:
Jamie Lennox
2014-06-15 22:42:45 +10:00
parent 5d66e29820
commit 5b9437d563

View File

@@ -2,13 +2,13 @@ coverage>=3.6
discover
fixtures>=0.3.14
hacking>=0.8.0,<0.9
httpretty>=0.8.0,!=0.8.1,!=0.8.2
keyring>=2.1,!=3.3
mock>=1.0
mox3>=0.7.0
oauthlib>=0.6
oslosphinx
pycrypto>=2.6
requests-mock>=0.4.0 # Apache-2.0
sphinx>=1.1.2,!=1.2.0,<1.3
testrepository>=0.0.18
testresources>=0.2.4