Metadata-Version: 2.1
Name: baby-steps
Version: 1.0.0
Summary: Readability Matters
Home-page: https://github.com/nikitanovosibirsk/baby-steps
Author: Nikita Tsvetkov
Author-email: nikitanovosibirsk@yandex.com
License: Apache-2.0
Platform: UNKNOWN
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# Baby Steps

[![PyPI](https://img.shields.io/pypi/v/baby-steps.svg?style=flat-square)](https://pypi.python.org/pypi/baby-steps/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/baby-steps?style=flat-square)](https://pypi.python.org/pypi/baby-steps/)
[![Python Version](https://img.shields.io/pypi/pyversions/baby-steps.svg?style=flat-square)](https://pypi.python.org/pypi/baby-steps/)

## Installation

```sh
pip3 install baby-steps
```

## Usage

```python
from unittest.mock import Mock, call, sentinel

from baby_steps import given, when, then


def test_smth():
    with given:
        value = sentinel.smth
        mock = Mock(return_value=value)

    with when:
        res = mock()

    with then:
        assert res == value
        assert mock.mock_calls == [call()]
```


