Test suite improvements - #68
Conversation
Mock out any real HTTP requests made from within tests. Responses are now deterministic, as the body of the response is loaded from a HTML file.
|
Hallelujah! Let me read this over and test it locally before merging. |
|
vcrpy may also be good for this: https://github.com/kevin1024/vcrpy |
|
@jeffnappi that's a good shout, cheers! I think it's up to @codelucas, ultimately. Personally, I think it might be a good idea to introduce something like vcrpy when we have a larger test suite. I'm not opposed to doing it straight away, though, if people think it's more benficial. |
|
@karls Upon looking at this here are a few bugs that I found: Everything else works perfectly! |
|
@codelucas
Have another look over it and let me know if anything else needs changing. |
|
Got it, i'm going to merge this and expect the third diff to come shortly! |
Don't do HTTP requests in tests.