An open API service indexing awesome lists of open source software.

https://github.com/dmayo3/mocksafe

Type-safe mocking for Python.
https://github.com/dmayo3/mocksafe

mocking mocking-library mocks python testing type-safety typesafe unit-testing

Last synced: 5 months ago
JSON representation

Type-safe mocking for Python.

Awesome Lists containing this project

README

          

.. image:: https://github.com/dmayo3/mocksafe/actions/workflows/mocksafe.yml/badge.svg
:target: https://github.com/dmayo3/mocksafe/actions/workflows/mocksafe.yml?query=branch%3Amain
:alt: Github Actions Status
.. image:: https://codecov.io/gh/dmayo3/mocksafe/branch/main/graph/badge.svg?token=S3JI6OOTGF
:target: https://codecov.io/gh/dmayo3/mocksafe
.. image:: https://readthedocs.org/projects/mocksafe/badge/?version=latest
:target: https://mocksafe.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://badge.fury.io/py/mocksafe.svg
:target: https://badge.fury.io/py/mocksafe
:alt: PyPI Package
.. image:: https://img.shields.io/badge/semver-2.0.0-blue
:target: https://semver.org/
:alt: Follows the Semantic Versioning 2.0.0 spec
.. image:: https://img.shields.io/pypi/pyversions/mocksafe.svg
:target: https://pypi.org/project/mocksafe
:alt: Supported versions
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
:alt: Code style: black
.. image:: http://www.mypy-lang.org/static/mypy_badge.svg
:target: http://mypy-lang.org/
:alt: Type checked by mypy
.. image:: https://img.shields.io/badge/License-MIT-green.svg
:target: https://github.com/dmayo3/mocksafe/blob/main/LICENSE
:alt: MIT License

MockSafe v0.10.0-beta
---------------------

A mocking library developed to enable static and runtime type checking of your mocks to help keep them up-to-date with your production code.

It has a simple, fluent API and is designed to be used with Python's `assert` statement.

Checkout the docs link below for more information.

Install and quickstart
----------------------

::

pip install mocksafe

`Library Usage `_

Links
----------------------

:Install: `PyPi `_
:Docs: `Read The Docs `_
:License: `MIT `_
:Source: `GitHub `_
:Issues: `GitHub Issues `_
:Discussion: `Questions & Feedback `_