Skip to content

Early load config to allow usage in in internal hooks/plugins and fixtures #10

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

Merged
merged 1 commit into from
Jan 11, 2020

Conversation

lucrib
Copy link
Contributor

@lucrib lucrib commented Dec 17, 2019

This PR changes the implemented hook from pytest_configure to pytest_cmdline_main.

The intention here is to load config as soon as possible in the pytest life cycle so code that is initialised before pytest_configure hooks are executed, can make use of it.

…arly load config

This is to allow usage of config from inside fixtures and other code initialized before fixtures.
@lucrib lucrib changed the title Move config loading form pytest_configure to pytest_cmdline_main to e… Early load config to allow usage in other hooks and fixtures Dec 17, 2019
@lucrib lucrib changed the title Early load config to allow usage in other hooks and fixtures Early load config to allow usage in in internal hooks/plugins and fixtures Dec 17, 2019
@lucrib lucrib mentioned this pull request Jan 7, 2020
@wojole wojole merged commit 133d765 into wojole:master Jan 11, 2020
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