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

Use Python's build in unittest.mock #154

Merged
merged 2 commits into from
Feb 5, 2023
Merged

Conversation

jelly
Copy link
Contributor

@jelly jelly commented Nov 12, 2022

Since Python 3.3 the unittest module supports mock and replaces python-mock which is now deprecated.

jelly and others added 2 commits November 12, 2022 17:27
Since Python 3.3 the unittest module supports mock and replaces
python-mock which is now deprecated.
Copy link
Owner

@neithere neithere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@neithere neithere merged commit eb5d19e into neithere:master Feb 5, 2023
@jelly jelly deleted the unittest-mock branch February 6, 2023 07:58
neithere added a commit that referenced this pull request Feb 8, 2023
This is a temporary workaround for this specific version of Argh.
Since v.0.28 the support for Python 2.x will be dropped and we'll
revert this commit there.
neithere added a commit that referenced this pull request Feb 8, 2023
* test: drop outdated test stub
* test: fix py27 deps (broken by #154)

This is a temporary workaround for this specific version of Argh.
Since v.0.28 the support for Python 2.x will be dropped and we'll
revert this commit there.

* docs: updated changelog
* docs: remove example of to-be-deprecated API

It was a poor design decision to misuse annotations for arg help.
We'll replace it with proper typing support in later versions.

* chore: bump version

* chore: update supported Python versions everywhere

Documentation, trove classifiers, tests (tox, CI).

* chore: declare support for Python 3.11
* refactor: minor changes for readability
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.

None yet

2 participants