python-oauth2
python-oauth2 copied to clipboard
Properly mock all tests requiring network access.
trafficstars
Most tests do not require networking, but test_access_token_get, test_access_token_post, test_two_legged_get and test_two_legged_post do. Please provide an easy way to run only tests which do not require networking.
@joestump I haven't taken a look at the tests in awhile but perhaps we just need to abstract networking layer here?
@jaitaiwan we should just be mocking the requests. So I think @wRAR's request is to mock these up.
Well, we (Debian) want to run tests but don't want them to use networking, so any change allowing that will be good.