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

Removed unittest mock #4488

Closed
wants to merge 1 commit into from
Closed

Conversation

radarhere
Copy link
Member

Helps #4193

Suggestion to replace unittest mock with custom code, including a context manager.

@coiax
Copy link

coiax commented Mar 28, 2020

unittest.mock is an excellent toolkit for mocking and patching, and using it doesn't mean you have to use unittest style tests, surely?

@radarhere
Copy link
Member Author

No, it doesn't. I created this PR separate to other unittest related changes because I felt it was more debatable. So if you think this shouldn't be included, that's valid, and we'll see what others think.

@nulano
Copy link
Contributor

nulano commented Mar 28, 2020

How about the pytest alternative?

@radarhere
Copy link
Member Author

@nulano because I didn't see it? Thanks. I've added it to PR #4486

@radarhere radarhere closed this Mar 28, 2020
@radarhere radarhere deleted the mock_patch branch March 28, 2020 23:46
@nulano
Copy link
Contributor

nulano commented Mar 29, 2020

@radarhere Apologies if I worded that poorly, it was merely a suggestion.

@radarhere
Copy link
Member Author

@nulano not at all, good suggestion

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

Successfully merging this pull request may close these issues.

None yet

3 participants