Python t-strings and Testing Flask & Quart Apps w/Pytest & Playwright


Details
Want to learn more about Python and meet other Pythonistas?
Please register here: https://ti.to/sfpython/jul-16th-sf-python-sentry?source=meetup
Please support our sponsors Sentry!
π Submit your 5, 15 or 25 mins talk proposals here: https://bit.ly/bapyacfp
SCHEDULED TALKS
π Sentry Intro (~5 mins)
π t-strings: A how-to guide - James Ouyang
(~25 mins + Q&A)
t-strings are coming in Python 3.14. Come learn how they work and explore some fun use cases.
James Ouyang is a long time SF Python attendee. He currently uses Python to build and ship retail analytics at Pathr. Previously, he worked on peering tools at an Internet backbone company and as a data engineer on a presidential campaign.
π Testing Flask and Quart Apps with Pytest and Playwright - Pamela Fox
(~25 mins + Q&A)
Flask and Quart are fantastic web frameworks for web applications that have both an API backend and a HTML frontend. But how do you test full-stack apps? I'll share my favorite approach: Use pytest for every kind of test: unit, integration, even E2E tests. For backend tests, save the results of each API route test using snapshot testing. For E2E tests, use the Playwright browser automation package, and mock network calls using the backend snapshots. I'll demo tests across multiple web apps, using Flask, FrozenFlask, and Quart, and dig into the trickiest parts of the test setup. All shared code will be open source and linked, so you can bring the same approach into your own apps.
Pamela is a Principal Cloud Advocate at Microsoft. She's been in the industry for 20 years, doing things like developer relations at Google, full-stack engineering at Coursera, course development at Khan Academy. She's also taught at UC Berkeley and for non-profits like GirlsWhoCode, TEALS, and CoderDojo.
AGENDA
6:30p Reconnect with friends!
7:00p Opening remarks, sponsors acknowledgement
7:10p Scheduled talks and Q&A + networking break
8:30p Wrap up last talk, more networking
THIS EVENT IS PRODUCED BY
SF Python, a volunteers-run organization aiming to foster the Python Community in the Bay Area

Sponsors
Python t-strings and Testing Flask & Quart Apps w/Pytest & Playwright