Skip to content

Skip Django setup and manage.py scanning with "pytest --help" #238

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
Jul 25, 2015

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented May 9, 2015

With pytest --version and pytest --help pytest-django should not
throw an error (ImportError) in case of invalid DSM settings etc.

This removes hooking into pytest_configure altogether, and moves the
late call do _setup_django into the session-scoped autoload fixture instead.

Fixes #235

With `pytest --version` and `pytest --help` pytest-django should not
throw an error (ImportError) in case of invalid DSM settings etc.

This removes hooking into `pytest_configure` altogether, and moves the
late call do `_setup_django` into the session-scoped autoload fixture instead.

Fixes pytest-dev#235
@blueyed blueyed force-pushed the no-error-for-help-and-version branch from 866eacf to 61372a2 Compare May 9, 2015 21:58
@landscape-bot
Copy link

Code Health
Code quality remained the same when pulling 61372a2 on blueyed:no-error-for-help-and-version into 1f48ebf on pytest-dev:master.

@blueyed
Copy link
Contributor Author

blueyed commented Jun 9, 2015

@pelme
Please review and merge it if it's appropriate.

pelme added a commit that referenced this pull request Jul 25, 2015
Skip Django setup and manage.py scanning with "pytest --help". Thanks @blueyed
@pelme pelme merged commit fe7d280 into pytest-dev:master Jul 25, 2015
@blueyed blueyed deleted the no-error-for-help-and-version branch July 25, 2015 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make "py.test --help" more friendly if DSM is set, but PYTHONPATH is not
3 participants