dishka icon indicating copy to clipboard operation
dishka copied to clipboard

Dishka testing

Open Forceres opened this issue 1 year ago • 0 comments

In docs we have a page with testing example. But, actually, in real tests we have a lot of dependencies and we need to make a lot of mocks, so it is not convenient to re-write fully mocked provider (also sometimes we need to mock some methods in certain tests and have it unmocked in others). Maybe something like dependency_override method could be implemented or there are some other best practices for testing with dishka (mocking dishka, support FromDishka in pytest)?

Forceres avatar Aug 20 '24 04:08 Forceres