We want to implement simple statistical functions (median, mean, variance) and make sure they work as expected.
We use the pytest
framework to write and execute tests for our functions.
git clone
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pytest
Click to expand the expected output of running pytest command
============================================================================== test session starts ==============================================================================
platform [your platform]
rootdir: [your path]/scioi_symposium_2023_python_testing_and_integration
collected 1 item
test_my_stats.py . [100%]
=============================================================================== 1 passed in 0.00s ===============================================================================