GithubHelp home page GithubHelp logo

Comments (8)

ignazioc avatar ignazioc commented on August 16, 2024 1

It should more convenient specify exactly which http call should be mocked. I'm using nocilla during the development process and i would like to mock just one or two api calls that are not ready yet.

from nocilla.

ignazioc avatar ignazioc commented on August 16, 2024 1

no, I moved to a different library. https://github.com/AliSoftware/OHHTTPStubs

from nocilla.

luisobo avatar luisobo commented on August 16, 2024

Nocilla is working as expected. Your app is making an HTTP request and
Nocilla is blocking it as it should.

Now, I understand that it's not you the one making the request so you have
two options:

  1. Find out which method call in your app is triggering that HTTP request
    (put a breakpoint in -[LSNocilla responseForRequest:] where the
    NocillaUnexpectedRequest exception is being raised) and inspect the stacktrace)
  2. If you cannot find it (and maybe you won't) simply stub that HTTP
    request as suggested by Nocilla stubRequest(@"GET", @" http://gsp1.apple.com/pep/gcc");

I'd love to know more about this issue. Please, post your findings back
here.

Thanks!

from nocilla.

johanforssell avatar johanforssell commented on August 16, 2024

I've converted the test to a Xcode logical unit test, which of course made the problem go away.

from nocilla.

maxehmookau avatar maxehmookau commented on August 16, 2024

Having exactly the same problem. Very annoying since it seems to be apple. :(

from nocilla.

zackbraksa avatar zackbraksa commented on August 16, 2024

@ignazioc did you figure out how to stub only certain API calls ?

from nocilla.

zackbraksa avatar zackbraksa commented on August 16, 2024

@ignazioc does it support that use case ?

from nocilla.

ignazioc avatar ignazioc commented on August 16, 2024

@qbraksa yep. Only the calls that pass a custom block are stubbed

from nocilla.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.