Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytest integration #193

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

pytest integration #193

wants to merge 4 commits into from

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants