When I stub request with nock it returns String result instead of Object even with 'Content-Type': 'application/json': checking: output: In c ...
When I stub request with nock it returns String result instead of Object even with 'Content-Type': 'application/json': checking: output: In c ...
I'm currently using python_flickr_api to upload photos for my app: it uses httplib to perform a multipart POST request. Problem: I want to verify tha ...
I have this error when I tried to implement "Fakeweb" and I do not understand the problem. Scenario: "After user had filled in all the information, t ...
What is the easiest way to test if HTTP-request is not made? Say, I want my application NOT to send an API call to a remote server, if the user doesn ...
I'm using the fakeweb module which overwrites Node's http.request with the following function: My issue is that I get the bug: TypeError: Object #& ...
How can I stub a call to a url eg http://www.example.com/images/123.png and return an image named 123.png? I'm using Rails 3.2, Carrierwave. I've tr ...
Is there a way to get a list of registered URIs in FakeWeb? When I register one like: It seems like it should be available somewhere since it keeps ...
I try to mock out geocoding request by using FakeWeb (in cucumber/rails). When I block all http requests I get the message: So I registered the ur ...
I'm using Mechanize to spider some websites. While spidering I save pages to files that I use later with Fakeweb to do tests. My Mechanize agent is c ...
I am writing a gem and I want to check that it is performing an http request with the parameters , headers and content that its supposed to pass. How ...
I never liked writing mocks and a while ago someone here recommended to use FakeWeb. I immediately fell completely in love with FakeWeb. However, I ha ...
to test my program against webpages, which change quite often, I need to mock the answers. I've found FakeWeb for Ruby, which would be a good starting ...
I really like the way fakeweb in Ruby can be used to fake http requests when testing. Is there a similar library or an alternative for Python? ...