Skip to content

Commit

Permalink
Add unittest.mock aliases
Browse files Browse the repository at this point in the history
Closes: #1
  • Loading branch information
srittau committed Jun 29, 2020
1 parent 5e1e450 commit e7be351
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions stubs/pytest_mock/plugin.pyi
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
# incomplete
# Incomplete, more complete version in typeshed HEAD.

import unittest.mock
from typing import Any, TypeVar, overload
from unittest.mock import MagicMock

_T = TypeVar("_T")

class MockFixture:
mock_module: Any # unittest.mock module
mock_module: unittest.mock module
Mock: unittest.mock.Mock
MagicMock: unittest.mock.MagicMock
NonCallableMock: unittest.mock.NonCallableMock
PropertyMock: unittest.mock.PropertyMock
call: unittest.mock.call
ANY: unittest.mock.ANY
DEFAULT: unittest.mock.DEFAULT
create_autospec: unittest.mock.create_autospec
sentinel: unittest.mock.sentinel
mock_open: unittest.mock.mock_open
def __init__(self, config: Any) -> None: ...
patch: _Patcher

Expand Down

0 comments on commit e7be351

Please sign in to comment.