Skip to content

Injection framework raising exceptions when resolving from an extension during test cases #49

Description

@timsavage

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🐛 bugThis issue has been reviewed and accepted as a bug💡 enhancementThis issue/pr has been reviewed and accepted as an enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions