test logo test: introduction

1 2 3 4 5 6 7 8 9
Notes

We've got a base project going for us, which is nice. But let's add some proper unit tests as well as some code formatters! Note; you can find the live repository for this project here.

Check out our pytest series if you're unfamiliar. To install pytest locally, run:

python -m pip install pytest

After creating the test folder and the empty __init__.py file you can add a single file called test_basics.py with a test in it.

from clumper import Clumper

def test_empty_list():
    assert len(Clumper([]).collect()) == 0

You can confirm that pytest works by running:

pytest

Note; you can find the live repository for this project here.