This project helps explore and learn pytest by testing basic Python logic and simple API routes built with vanilla Python. It covers writing test cases, using fixtures, parameterised tests, and mocking. The goal is to build strong testing skills and integrate CI/CD for automated testing with GitHub Actions.
This project is designed to help me learn and master the pytest framework by writing tests for basic Python logic and API routes built using vanilla Python. The goal is to explore various features of pytest, including test case creation, fixtures, parameterized tests, and mocking, while applying them to simple applications. This project will serve as a practical reference for testing in Python, as well as an opportunity to integrate continuous testing using GitHub Actions.
The project covers:
- Writing tests for basic Python functions (e.g., arithmetic operations, string manipulation).
- Testing simple API routes using Python’s built-in HTTP server.
- Exploring advanced pytest features like fixtures, parameterized tests, and mocking.
- Integrating test coverage and CI/CD for automated testing.
This project is part of my journey to become more proficient in testing and to build a strong foundation for writing maintainable Python code.