Code Monkey home page Code Monkey logo

Comments (6)

myronmarston avatar myronmarston commented on July 24, 2024 1

@coop I've just used multiple cassettes within a single test so that when duplicate requests are made, it's made to a new cassette that will record it.

from exvcr.

coop avatar coop commented on July 24, 2024

@myronmarston I have the same issue. In #104 @parroty suggests using query parameters to distinguish requests... Unfortunately that isn't a solution for me. Did you come up with a workaround?

from exvcr.

coop avatar coop commented on July 24, 2024

Clever. Thanks.

from exvcr.

jcypret avatar jcypret commented on July 24, 2024

I ran into a similar issue when working with the Amazon MWS reports API. A report is requested, then a different endpoint polled using the request ID until the response has a status of "done" along with the report id for download. In this case, the same request is made but returns different results over time. The query param hack doesn't work in this case because with Amazon you have to sign the entire request and cannot add extra params.

I like @myronmarston 's idea of using multiple cassettes. I'll give that a try.

from exvcr.

lmarlow avatar lmarlow commented on July 24, 2024

We've gone down the multiple cassette path, too. I'm wondering if it would be better to not use the cache at all if the cassette file didn't exist when the test started.

from exvcr.

joevandyk avatar joevandyk commented on July 24, 2024

I'm running into this as well - I agree with @lmarlow that the cache shouldn't be used if it's recording.

from exvcr.

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.