DeepDiff Find Deep Differences of Python Objects

DeepDiff Find Deep Differences of Python Objects

When testing the outputs of your functions, it can be frustrated to see your tests fail because of something you don’t care too much about such as:

  • order of items in a list
  • different ways to specify the same thing such as abbreviation
  • exact value up to the last decimal point, etc

Is there a way that you can exclude certain parts of the object from the comparison? That is when DeepDiff comes in handy.

Link to DeepDiff.

Link to my previous tips on testing.

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran