[go: nahoru, domu]

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

Current status of the asynctest #158

Open
rohitchormale opened this issue Jan 11, 2021 · 5 comments
Open

Current status of the asynctest #158

rohitchormale opened this issue Jan 11, 2021 · 5 comments

Comments

@rohitchormale
Copy link
rohitchormale commented Jan 11, 2021

First of all, I would like to thanks author and contributors for this cool library.

We are using it heavily in our codebase. Currently, we are in the middle of upgrading our source to python3.8/3.9 and many of our existing test-cases are failing. It looks like asynctest is yet to support python3.8/3.9 (Ref #144, #151, #132).

I can see py3.8 branch with last commit (and master too) long back. So, I would like to know the status and the roadmap of project. As mentioned in, beiniu/brother#18 , is unittest.mock.AsyncMock official recommendation ?

Thanks again.

abadger added a commit to abadger/antsibull that referenced this issue Jan 11, 2021
Longer term, we may need to use a different framework to test this, it's
unclear to me if asynctest is continuing to see updates:

Martiusweb/asynctest#158
abadger added a commit to ansible-community/antsibull that referenced this issue Jan 11, 2021
Longer term, we may need to use a different framework to test this, it's
unclear to me if asynctest is continuing to see updates:

Martiusweb/asynctest#158
@jayvdb
Copy link
jayvdb commented Feb 23, 2021

ping @Martiusweb ; it would be good to get clarification whether this testing library is going to be maintained going forward, or projects should migrate to stdlib or other testing tools.

@Kentzo
Copy link
Contributor
Kentzo commented Feb 23, 2021

I'm working on porting asynctest to stdlib, but there seems to be lack of demand.

Please consider upvoting / commenting python/cpython#20759

@Martiusweb
Copy link
Owner

Hi,

First of all, sorry for the very late reply.

To keep things short: I'll not work on asynctest anymore, and I believe unittest.mock.AsyncMock in combination with pytest is probably your best bet for now.

I'm sorry that I can't provide a better answer, and that I've abandoned this library.
I wish I could help to propose a migration plan, but I haven't been able to find enough time/momentum to do that when AsyncMock has been introduced in the stdlib.
I haven't worked on a python project in the last 3-4 years and it became impossible for me to keep up with the changes in Python and asyncio.

@rohitchormale
Copy link
Author

Thanks for the clarification. We can understand. Keep up the good work !

@pquentin
Copy link

For what it's worth, asynctest apparently supports use cases that AsyncMock does not: https://stackoverflow.com/questions/53508368/python-unit-testing-nested-async-with-how-to-mock-patch

mbakke pushed a commit to guix-mirror/guix that referenced this issue Nov 5, 2021
This library is no longer supported (doesn't build with Python 3.9; see
Martiusweb/asynctest#158).

* gnu/packages/python-xyz.scm (python-aionotify): Delete variable.
mbakke pushed a commit to guix-mirror/guix that referenced this issue Nov 11, 2021
This library is no longer supported (doesn't build with Python 3.9; see
Martiusweb/asynctest#158).

* gnu/packages/python-xyz.scm (python-aionotify): Delete variable.
archlinux-github pushed a commit to archlinux/svntogit-community that referenced this issue Apr 9, 2023
Martiusweb/asynctest#158


git-svn-id: file:///srv/repos/svn-community/svn@1443126 9fca08f4-af9d-4005-b8df-a31f2cc04f65
archlinux-github pushed a commit to archlinux/svntogit-community that referenced this issue Apr 9, 2023
Martiusweb/asynctest#158

git-svn-id: file:///srv/repos/svn-community/svn@1443126 9fca08f4-af9d-4005-b8df-a31f2cc04f65
miketheman added a commit to miketheman/pytest-socket that referenced this issue Jun 18, 2023
The author has mentioned that they no longer work on the library.
Martiusweb/asynctest#158 (comment)

Since we have other tests in place now that exercise asyncio-style
tests, we can remove this test and dependency.

Resolves #161

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
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

5 participants