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

test: Fix using unittest.mock whenever available #1926

Merged
merged 15 commits into from
Jun 7, 2023

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Feb 27, 2023

Fix some of the newly-added mock imports to prefer unittest.mock when it is available. Update test-requirements.txt to install mock only in Python < 3.3; hopefully this will suffice for CI to catch these regressions in the future.

Fix some of the newly-added `mock` imports to prefer `unittest.mock`
when it is available.  Update `test-requirements.txt` to install `mock`
only in Python < 3.3; hopefully this will suffice for CI to catch these
regressions in the future.
@github-actions
Copy link

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@github-actions
Copy link

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@github-actions
Copy link

github-actions bot commented May 6, 2023

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@mgorny
Copy link
Contributor Author

mgorny commented May 6, 2023

@antonpirker, ping!

@antonpirker antonpirker enabled auto-merge (squash) May 8, 2023 07:17
@github-actions
Copy link

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@antonpirker
Copy link
Member

updated the branch and restarted the tests

@sentrivana sentrivana disabled auto-merge June 7, 2023 09:48
@sentrivana sentrivana enabled auto-merge (squash) June 7, 2023 09:50
@sentrivana sentrivana merged commit 59bf4d4 into getsentry:master Jun 7, 2023
@sentrivana
Copy link
Contributor

Thanks @mgorny!

@mgorny
Copy link
Contributor Author

mgorny commented Jun 7, 2023

Thanks!

@mgorny mgorny deleted the unittest-mock branch June 7, 2023 13:50
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

Successfully merging this pull request may close these issues.

3 participants