13 min listen
143: pytest markers - Anthony Sottile
FromTest and Code
ratings:
Length:
40 minutes
Released:
Feb 7, 2021
Format:
Podcast 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.
Special Guest: 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.
Special Guest: Anthony Sottile.
Released:
Feb 7, 2021
Format:
Podcast episode
Titles in the series (100)
2: Pytest vs Unittest vs Nose: Choosing a test framework by Test and Code