pyapp icon indicating copy to clipboard operation
pyapp copied to clipboard

Injection framework raising exceptions when resolving from an extesion during test cases

Open timsavage opened this issue 4 years ago • 2 comments

Extensions are loaded at application startup causing factories to be registered. In test cases however, this step does not get executed leading to exceptions.

A workaround is to load extensions in conftest.py (pytest) and call their ready method to cause factories to be registered.

timsavage avatar Jun 14 '20 16:06 timsavage