DiscoverTest & Code : Python Testing143: pytest markers - Anthony Sottile
143: pytest markers - Anthony Sottile

143: pytest markers - Anthony Sottile

Update: 2021-02-071
Share

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.

Sponsored By:

Support Test & Code : Python Testing

Links:

Comments 
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

143: pytest markers - Anthony Sottile

143: pytest markers - Anthony Sottile

Brian Okken