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.2.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for baby_steps-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e81496defba37870c9b61bcb7e710a2fe4997fe3db4216452be5bab73117431 |
|
MD5 | bdf57cf7a571c0768dc3042befbbfd95 |
|
BLAKE2b-256 | 4c1d5794bdd048ce4a4fb9b1f8d2c33d07be24021d923342eba0d83351293a3b |