SCIoI Symposium 2023: Python Testing and Integration

Task

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.

Setup

Step 1: clone the repository

git clone

Step 2: create a virtual environment

python3 -m venv venv

Step 3: activate the virtual environment

source venv/bin/activate

Step 4: install the dependencies

pip install -r requirements.txt

Step 5: run the tests

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 ===============================================================================