A simple pytest demo project that tests CRUD operations on a RESTful TODO API (https://todo.pixegami.io) using Python requests.
It covers creating, reading, updating, listing, and deleting tasks.
test_*.py— contains pytest test cases.- Uses
requestsfor HTTP calls.
Make sure you have pytest and requests installed:
pip install pytest requestspytestpytest -vpytest -v -sFor example, to run the test_can_create_task function:
pytest -v -s -k test_can_create_task