Skip to content
All lessons

Tech Insights· kalnytskyi.com

Assert that str matches regex in pytest

From kalnytskyi.com

pytest is a mature full-featured Python testing tool and test runner. In this post you can learn a trick how to match a string against a regular expression when a string is part of dict or list.

Shared by

Read on kalnytskyi.com

Book a call

Lessons like this one
shape how we build.

Tell us what you’re building. In one call, we’ll show you how our team would approach it.

Tell us what you’re building, and we’ll show you how we’d approach it.

Still prefer the good old email? Contact us