Using the V3 API, custom expectations are their own class. In order to use them, you’ll need to import the custom expectation. For example, if you store your custom expectation Expect_Boo
in a file boo.py
in the plugins directory, then you would import it as follows: from boo import Expect_Boo
.