Python Testing

Python Software Development and Software Testing (posts and podcast)

  • Start Here
  • Podcast
  • Subscribe
  • Support
  • About
  • The Book
  • Contact
  • Archive
  • Slack

11: pytest assert magic

February 3, 2016 By Brian Leave a Comment

How pytest, unittest, and nose deal with assertions.

[powerpress]

Subscribe on iTunes, RSS

PythonTestPodcast_Cover
The job of the test framework to tell developers how and why their tests failed is a difficult job.
In this episode I talk about assert helper functions and the 3 methods pytest uses to get around having users need to use assert helper functions.

Share:

  • Click to share on Google+ (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)

Related posts:

  1. Delayed assert / multiple failures per test
  2. pytest delayed assert / multiple failure plugin, iteration 1
  3. 2: Pytest vs Unittest vs Nose
  4. Transcript for episode 2: Pytest vs Unittest vs Nose
  5. Python Testing with unittest, nose, pytest : eBook

Filed Under: Podcast Tagged With: assert, magic, nose, pytest, unittest

Python Testing with unittest, nose, pytest.
Get up to speed fast on pytest, unittest, and nose.
All in the comfort of your own e-reader.

Leave a Reply Cancel reply

Learn pytest FAST

Get your tests up and running fast. Learn to use pytest in this easy to follow book

Python Bytes Podcast

Python headlines delivered directly to your earbuds. 15 minute conversation on the topical items of the week in the Python ecosystem