Skip to content

Testing a custom Flask API using Python’s unittest and coverage tools

Notifications You must be signed in to change notification settings

ragesh28/flask-api-testing-ragesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧪 Flask API Testing

This project demonstrates how to write unit and API tests for a custom Flask-based API using Python’s unittest module.


📌 API Features

  • Create user (POST /users)
  • Get all users (GET /users)
  • Update user (PUT /users/<id>)
  • Delete user (DELETE /users/<id>)

💻 Tech Used

  • Python 3
  • Flask
  • unittest
  • coverage (for test coverage report)

▶️ How to Run the Server

python api.py

About

Testing a custom Flask API using Python’s unittest and coverage tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages