
153: Playwright for Python: end to end testing of web apps - Ryan Howard
05/14/21 • 31 min
Playwright is an end to end automated testing framework for web apps with Python support and even a pytest plugin.
Links:
Sponsored by:
- The Complete pytest course is now a bundle, with each part available separately.
- pytest Primary Power teaches the super powers of pytest that you need to learn to use pytest effectively.
- Using pytest with Projects has lots of "when you need it" sections like debugging failed tests, mocking, testing strategy, and CI
- Then pytest Booster Rockets can help with advanced parametrization and building plugins.
- Whether you need to get started with pytest today, or want to power up your pytest skills, PythonTest has a course for you.
Playwright is an end to end automated testing framework for web apps with Python support and even a pytest plugin.
Links:
Sponsored by:
- The Complete pytest course is now a bundle, with each part available separately.
- pytest Primary Power teaches the super powers of pytest that you need to learn to use pytest effectively.
- Using pytest with Projects has lots of "when you need it" sections like debugging failed tests, mocking, testing strategy, and CI
- Then pytest Booster Rockets can help with advanced parametrization and building plugins.
- Whether you need to get started with pytest today, or want to power up your pytest skills, PythonTest has a course for you.
Previous Episode

152: Python Packaging - Brett Cannon
I always learn a lot when I talk to Brett, and this episode is no exception.
We talk about the packaging workflow, tools, changes, pyproject.toml, flit, setuptools, and so much more.
I hope you learn as much as I did in this great discussion.
Links:
- pytest-srcpaths
- Python Packaging User Guide
- pypa/packaging: Core utilities for Python packages
- flit and requires-python
- Extending and Embedding the Python Interpreter — Python 3.9.2 documentation
- Flit
- setuptools
- PEP 518 -- Specifying Minimum Build System Requirements for Python Projects | Python.org
- PEP 517 -- A build-system independent format for source trees | Python.org
- Flit editable installs with --symlink or --pth-file
- PEP 440 -- Version Identification and Dependency Specification | Python.org
- Specifying requires-python with flit
- wheel
- Universal 1 binary
- Universal 2 binary
- Cython: C-Extensions for Python
- CFFI
- pybind11: Seamless operability between C++11 and Python
- Conda
- conda environments
- conda-forge
- VaultsOfParnassus
Sponsored by:
- The Complete pytest course is now a bundle, with each part available separately.
- pytest Primary Power teaches the super powers of pytest that you need to learn to use pytest effectively.
- Using pytest with Projects has lots of "when you need it" sections like debugging failed tests, mocking, testing strategy, and CI
- Then pytest Booster Rockets can help with advanced parametrization and building plugins.
- Whether you need to get started with pytest today, or want to power up your pytest skills, PythonTest has a course for you.
Next Episode

154: Don't Mock your Database - Jeff Triplett
You need tests for your web app. And it has a database. What do you do with the database during testing? Should you use the real thing? or mock it? Jeff Triplett says don't mock it.
In this episode, we talk with Jeff about testing web applications, specifically Django apps, and of course talk about the downsides of database mocking.
Links:
- "🤔 In ~12 years, I have never seen a case where mocking a database was a good idea. ..."
- Django News
- Moto
- Test & Code 103: Django - Lacey Williams Henschel
- Model Bakery: Smart fixtures for better tests
- Faker
Sponsored by:
- The Complete pytest course is now a bundle, with each part available separately.
- pytest Primary Power teaches the super powers of pytest that you need to learn to use pytest effectively.
- Using pytest with Projects has lots of "when you need it" sections like debugging failed tests, mocking, testing strategy, and CI
- Then pytest Booster Rockets can help with advanced parametrization and building plugins.
- Whether you need to get started with pytest today, or want to power up your pytest skills, PythonTest has a course for you.
If you like this episode you’ll love
Episode Comments
Generate a badge
Get a badge for your website that links back to this episode
<a href="https://goodpods.com/podcasts/test-and-code-41514/153-playwright-for-python-end-to-end-testing-of-web-apps-ryan-howard-13792594"> <img src="https://storage.googleapis.com/goodpods-images-bucket/badges/generic-badge-1.svg" alt="listen to 153: playwright for python: end to end testing of web apps - ryan howard on goodpods" style="width: 225px" /> </a>
Copy