Testing

PyMock

Third-party Python package module — mock. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.mock.create_autospec()Neutral
#
Signature
mock.create_autospec(spec, spec_set, instance, _parent, _name, unsafe, **kwargs)

mock.create_autospec function.

.mock.mock_open()Neutral
#
Signature
mock.mock_open(mock, read_data)

mock.mock_open function.

.mock.seal()Neutral
#
Signature
mock.seal(mock)

mock.seal function.

.mock.AsyncMagicMixin()Neutral
#
Signature
mock.AsyncMagicMixin(...)

mock.AsyncMagicMixin class.

.mock.AsyncMock()Neutral
#
Signature
mock.AsyncMock(...)

mock.AsyncMock class.

.mock.AsyncMockMixin()Neutral
#
Signature
mock.AsyncMockMixin(...)

mock.AsyncMockMixin class.

.mock.Base()Neutral
#
Signature
mock.Base(...)

mock.Base class.

.mock.CallableMixin()Neutral
#
Signature
mock.CallableMixin(...)

mock.CallableMixin class.

.mock.InvalidSpecError()Neutral
#
Signature
mock.InvalidSpecError(...)

mock.InvalidSpecError class.

.mock.MagicMixin()Neutral
#
Signature
mock.MagicMixin(...)

mock.MagicMixin class.

Fully-Qualified Names

FQNField
mockfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import mock