Skip to content

MagicMock doesn't implement __aenter__ or __aexit__ #29

@txomon

Description

@txomon

When testing asyncio code, the probability of needing to test async context manager is high.

The current code using MagicMock doesn't implement __aenter__ or __aexit__ methods

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions