Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 491 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 491 Bytes

Python Function and Test Examples

Small Python module with a pytest test suite.

How it works

sample.py defines a default greeting, a personalised greeting and a formatted sum. test_sample.py checks the returned strings using assertions.

Usage

Requires Python. Install pytest, then run the tests from the repository root:

python -m pip install pytest
python -m pytest

Notes

The module has no command-line entry point, server or external service dependencies.