Plugins for Web Development

Web-based projects have their own testing hoops to jump through. Even pytest doesn’t make testing web applications trivial. However, quite a few pytest plugins help make it easier.

pytest-selenium: Test with a Web Browser

Selenium is a project that is used to automate control of a web browser. The pytest-selenium plugin[51] is the Python binding for it. With it, you can launch a web browser and use it to open URLs, exercise web applications, and fill out forms. You can also programmatically control the browser to test a web site or web application.

pytest-django: Test Django Applications

Django is a popular Python-based web development framework. It comes with testing hooks that allow you to test different parts of ...

Get Python Testing with pytest now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.