Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOCKING ON, but letting this fall through #11

Open
Christilut opened this issue Mar 3, 2019 · 2 comments
Open

MOCKING ON, but letting this fall through #11

Christilut opened this issue Mar 3, 2019 · 2 comments

Comments

@Christilut
Copy link

Mocking seems to work for most of my calls but some are saying MOCKING ON, but letting this fall through. Why is that? Seems to happen to calls that it does a lot of to the same endpoint but different querystring.
The endpoints are recorded and saved as json.

@scottschafer
Copy link
Owner

Yeah, this library assumes that every run will call the exact same APIs with the same query strings. If that's not the case (for example, you're passing the current timestamp as a query parameter), it won't work.

I haven't worked on this in a little while, but when I get time I may introduce an option to provide a matching function.

@Christilut
Copy link
Author

Ah okay, I was under the assumption that endpoints would be unique including their query string.

Actually it's not really a problem if it would just return the same response regardless of query string but it seems to not mock those calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants