143: pytest markers - Anthony Sottile - podcast episode cover

143: pytest markers - Anthony Sottile

Feb 07, 202140 minSeason 1Ep. 143
--:--
--:--
Download Metacast podcast app
Listen to this episode in Metacast mobile app
Don't just listen to podcasts. Learn from them with transcripts, summaries, and chapters for every episode. Skim, search, and bookmark insights. Learn more

Episode description

Completely nerding out about pytest markers with Anthony Sottile.

Some of what we talk about:

  • Running a subset of tests with markers.
  • Using marker expressions with and, or, not, and parentheses.
  • Keyword expressions also can use and, or, not, and parentheses.
  • Markers and pytest functionality that use mark, such as parametrize, skipif, etc.
  • Accessing markers with itermarkers and get_closest_marker through item.
  • Passing values, metadata through markers to fixtures or hook functions.

Links:


Help support the show AND learn pytest: 

  • The Complete pytest course is now a bundle, with each part available separately.
  • Whether you need to get started with pytest today, or want to power up your pytest skills, PythonTest has a course for you.

★ Support this podcast on Patreon ★
For the best experience, listen in Metacast app for iOS or Android
Open in Metacast
143: pytest markers - Anthony Sottile | Test & Code podcast - Listen or read transcript on Metacast