Recent
Designing Reliable REST APIs with Flask
·803 words·4 mins
Python
Flask
REST API
API Design
Security
A practical follow-up to the Python REST API tutorial: make API contracts predictable and protect the service at its trust boundaries.
End-to-End Browser Tests with Playwright
·308 words·2 mins
Playwright
End-to-End Testing
Browser Testing
Web Development
Set up a browser test, drive it like a user, and reduce flakiness by waiting for observable outcomes.
Integration Testing a Flask API with pytest
·378 words·2 mins
Python
Flask
pytest
API Testing
Configure an isolated test app, send HTTP-like requests, and check the API contract at the boundary.
Mocks, Stubs, and Fakes: Choosing Test Doubles
·350 words·2 mins
Testing
Mocks
Software Design
Unit Testing
Compare stubs, mocks, fakes, and spies, then apply the smallest useful substitute in a test.
Parameterized Tests for Algorithms with pytest
·390 words·2 mins
Python
pytest
Algorithms
Testing
Build a compact test matrix for a two-sum implementation and learn when example tests are more useful than property tests.
pytest Basics: Tests, Fixtures, and Clear Assertions
·1984 words·10 mins
Python
pytest
Testing
Unit Testing
Write discoverable pytest functions, organize reusable state with fixtures, and make failures easy to understand.