An example project for unit testing python functions.
- Clone this repository into an empty folder.
- Initialize a Python environment and install the requirements.
- In the root folder, run:
pytest .
- The outcome should look as follows:
================================================================================================================= test session starts =================================================================================================================
platform win32 -- Python 3.7.5, pytest-6.1.1, py-1.9.0, pluggy-0.13.1
rootdir: C:\<path-your-repo>\azure-functions-python-unit-testing
plugins: reqs-0.2.1
collected 1 item
tests\test_httptrigger.py . [100%]
================================================================================================================== 1 passed in 0.09s ==================================================================================================================