If you’re building a web application, you should, among other things, test what a user might do.
For all its usefulness, webtest is not widely known. You may have heard of Selenium and Playwright, fine solutions but a bit complex. webtest fits between unit tests and more complex user interaction testing solutions. This talk is intended as an introduction, and shows how to get started.
In this talk, we focus on django-webtest, but there’s also flask-webtest and other integrations. Any WSGI-based web application can be tested with webtest.
About Kees Hink
Python web developer at Four Digits, Arnhem, NL.