Skip to content

pytest integration#193

Open
Tishka17 wants to merge 4 commits intodevelopfrom
feature/pytest_integration
Open

pytest integration#193
Tishka17 wants to merge 4 commits intodevelopfrom
feature/pytest_integration

Conversation

@Tishka17
Copy link
Member

#124

TODO:

  • pytest-asyncio

return pytest.fixture(temp_fixture)


def inject(func):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be possible to declare a own inject with a different fixture name as container name to enable different usages of dishka at the same time

i suspect pytest-asyncio is able to run on a async fixture, verification needed

@RonnyPfannschmidt
Copy link

i am under the impression there is a need to map pytest scopes to diska scopes and providing a way to use scoped fixtures as inputs for dishka scopes

that kind of integration will necessarily be more tricky

@Tishka17 Tishka17 added the to clarify Needs information or coordination with other issues label Feb 11, 2026
@Tishka17
Copy link
Member Author

It is not clear what expected bahavior we want to achive. I'll keep this PR for now, but probably it should not be merged

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

Labels

to clarify Needs information or coordination with other issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants