Skip to content

robertkovalauskis/pytest_rest_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

PyTest REST API Demo

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.


📦 Project Structure

  • test_*.py — contains pytest test cases.
  • Uses requests for HTTP calls.

▶️ How to Run the Tests

Make sure you have pytest and requests installed:

pip install pytest requests

Run all tests

pytest

Run all tests with verbose output

pytest -v

Run all tests with verbose output and see print statements

pytest -v -s

Run a specific test only

For example, to run the test_can_create_task function:

pytest -v -s -k test_can_create_task

About

A simple pytest demo for testing CRUD operations on a RESTful TODO API using requests — includes create, read, update, list, and delete task scenarios.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages