Readability Matters
Project description
Baby Steps
BDD steps for test markup. Just for readability.
Usage
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()]
Installation
pip3 install baby-steps
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
baby-steps-1.0.1.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for baby_steps-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82dfb6fe3fc7f06eca61a7d1a463e1fa317c4ce219770dee1ac9f41c7c771600 |
|
MD5 | 66f61453e34a5bf89550bc715d643fa4 |
|
BLAKE2b-256 | 5d38083948abee8b1bc643e69a0c6f5f8cc187fce85896025afe1021b216934b |