You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation currently says that as long as you import attest before your tests, and your tests import assert_hook, everything will work. This is no longer the case with 0.6, assert import hook is only enabled if you use the attest command. If not using the attest command, what should be the recommended way to use the assert hook?
A working solution is to ensure the following is done before test modules are imported:
from attest import AssertImportHook
AssertImportHook.enable()
But is this what we should recommend as the official way?
The text was updated successfully, but these errors were encountered:
The documentation currently says that as long as you import attest before your tests, and your tests import assert_hook, everything will work. This is no longer the case with 0.6, assert import hook is only enabled if you use the
attest
command. If not using theattest
command, what should be the recommended way to use the assert hook?A working solution is to ensure the following is done before test modules are imported:
But is this what we should recommend as the official way?
The text was updated successfully, but these errors were encountered: