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_configure calling order #2539

Closed
Ignalion opened this Issue Jun 30, 2017 · 5 comments

Comments

Projects
None yet
3 participants
@Ignalion

Ignalion commented Jun 30, 2017

Hi guys. Have a little question about order of calling different pytest_configure from conftest.py and plugins files.
Is there a documented or some unspoken order of calling this hook when it's present in different conftest.py files and\or plugins?

@RonnyPfannschmidt

This comment has been minimized.

Member

RonnyPfannschmidt commented Jun 30, 2017

for initial conftests and plugins the call order is random and affectable via tryfirst/trylast,

for other conftests it hapens right at loading time

we should document this indeed

@RonnyPfannschmidt

This comment has been minimized.

Member

RonnyPfannschmidt commented Jun 30, 2017

oh, and extra note - due to python3.6 dict ordering it ill happen in import order on python 3.6+ for now

@Ignalion

This comment has been minimized.

Ignalion commented Jun 30, 2017

Thus, as I understand, I can't rely on theirs order. Thanks!

@RonnyPfannschmidt

This comment has been minimized.

Member

RonnyPfannschmidt commented Jun 30, 2017

Reopened as we should document this one in the own docs

@nicoddemus

This comment has been minimized.

Member

nicoddemus commented Jun 30, 2017

Perhaps @Ignalion would like to take a stab at contributing this? 😉

nicoddemus added a commit that referenced this issue Jul 4, 2017

nicoddemus added a commit to nicoddemus/pytest that referenced this issue Jul 5, 2017

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