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
When you override the setUpClass of FastAPITransactionCase in your own est class and an exception occurs in your override after the call to super, the registry used by the extendable addon is not reset at its initial state.
Expected behavior
Once the test registry for extendable is initialized in the setUpClass method of FastAPITransactionCase, we must ensure that any error that occurs into the code reset the registry at its initial state.
The text was updated successfully, but these errors were encountered:
Register the cleanup of the extendable registry just after its initialisation by calling the method from unittest. If setUpClass() fails, meaning that tearDownClass() is not called, then any cleanup functions added with a call to will still be called.
refs OCA#392
Module
extendable_fastapi
Describe the bug
When you override the
setUpClass
ofFastAPITransactionCase
in your own est class and an exception occurs in your override after the call to super, the registry used by theextendable
addon is not reset at its initial state.Expected behavior
Once the test registry for
extendable
is initialized in thesetUpClass
method ofFastAPITransactionCase
, we must ensure that any error that occurs into the code reset the registry at its initial state.The text was updated successfully, but these errors were encountered: