Mockito

Latest version: v1.5.3

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

1.5.0

-------------------------------

- Oracking fixed `expect` to support a string as its first argument. All
other functions supported that already. E.g.

::
expect('os.path', times=2).exists(...).thenReturn(True)

1.4.0

-------------------------------

- avandierast implemented `thenCallOriginalImplementation`. See 60

::

Let `os.path.exists` use the real filesystem (often needed when
the testing framework needs itself a working `os.path.exists`
implementation) *but* fake a `.flake8` file.
when(os.path).exists(...).thenCallOriginalImplementation()
when(os.path).exists('.flake8').thenReturn(True)

1.3.5

-------------------------------

- Restore compatibility with Python 2.7

1.3.3

-----------------------------

- Hotfix: Correctly unstub methods extracted to the module level, for example ``random.randint()`` et.al. from the standard library. See 53

1.3.2

-----------------------------

- Let `mock(spec=SomeClass)` work just as `mock(SomeClass)`

1.3.1

-----------------------------

- Reimplement `captor` to capture only during execution phase of a test.

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.