userver: testsuite.compare.CompareVisitor Class Reference
Loading...
Searching...
No Matches
testsuite.compare.CompareVisitor Class Reference

Detailed Description

Extension point for pytest_register_compare_visitors: lets a plugin teach the assertrepr_compare machinery how to decompose a custom type into something comparable (e.g.

a nested dict/list/set), so that a failing == assertion involving it gets a helpful diff.

Definition at line 11 of file compare.py.

Classes

class  Predicate
class  Visitor

The documentation for this class was generated from the following file: