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 issue #114

Closed
Afrasyabafzal opened this issue Jun 26, 2024 · 3 comments
Closed

Mocking issue #114

Afrasyabafzal opened this issue Jun 26, 2024 · 3 comments

Comments

@Afrasyabafzal
Copy link

I want to mock a function in test so that it always gives the same response i tried every possible things but not able to do that

@omus
Copy link
Member

omus commented Jul 12, 2024

Can you provide the function signature of your patch and the function you want to mock? Alternatively, you may be able to determine the source of the problem yourself if you use apply(...; debug::Bool=false).

Also, remember you need to use Mocking.activate() before you use apply.

@omus
Copy link
Member

omus commented Jul 25, 2024

As of Mocking 0.8 you can debug with ENV["JULIA_DEBUG"] = "Mocking"

@omus
Copy link
Member

omus commented Aug 8, 2024

Feel free to re-open this issue if these suggestions don't adequately solve your problem.

@omus omus closed this as completed Aug 8, 2024
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