python-oauth2 icon indicating copy to clipboard operation
python-oauth2 copied to clipboard

Properly mock all tests requiring network access.

Open wRAR opened this issue 14 years ago • 3 comments
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.

wRAR avatar Apr 10 '11 05:04 wRAR

@joestump I haven't taken a look at the tests in awhile but perhaps we just need to abstract networking layer here?

jaitaiwan avatar Jul 29 '15 12:07 jaitaiwan

@jaitaiwan we should just be mocking the requests. So I think @wRAR's request is to mock these up.

joestump avatar Aug 02 '15 21:08 joestump

Well, we (Debian) want to run tests but don't want them to use networking, so any change allowing that will be good.

wRAR avatar Aug 03 '15 03:08 wRAR