Developer Tools / Testing · 2023
pycamel
A pytest-based framework for automated API testing
PythonpytestAPI Testing
- Role
- Solo development of the test automation framework
- Stack
- Python, pytest, Pylint, Coverage, codecov
- Year
- 2023
pycamel is an automation framework focused on covering API services with tests, integrating seamlessly with pytest. It gives teams a structured way to write API tests, especially useful for microservice architectures.
The challenge
When a team works with several services and API versions at once, scattered ad-hoc pytest scripts quickly turn into a mess with no shared structure or reusable building blocks.
The solution
- ▸CamelConfig — configuration setup with a base service URL
- ▸RouterMaker — route construction for different API endpoints
- ▸Parametrized testing via pytest.mark.parametrize
- ▸Response validation helpers, including assert_status_code
- ▸Request filter support and easy extension for multi-service architectures
The result
The framework is set up for code quality: Pylint for static analysis, plus Coverage and codecov for tracking test coverage.