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

Compatibility issue with latest pytest versions #224

Closed
neg3ntropy opened this issue Oct 5, 2017 · 2 comments
Closed

Compatibility issue with latest pytest versions #224

neg3ntropy opened this issue Oct 5, 2017 · 2 comments

Comments

@neg3ntropy
Copy link

Since pytest 3.1.0 (currently at 3.2.3) pytest-bdd breaks in cookiecutter-qa with:

_pytest.vendored_packages.pluggy.PluginValidationError: unknown hook 'pytest_bdd' in plugin <module 'project_qa.tests.functional.conftest' (<_pytest.assertion.rewrite.AssertionRewritingHook object at 0x7f035b2d4f28>)>

Up to version 3.0.7 this does not happen.

@The-Compiler
Copy link
Member

This doesn't seem to be a pytest-bdd issue - you import pytest_bdd in your conftest.py, and apparently pluggy (part of pytest for plugin hooks) interprets that as a pytest hook.

As a workaround you can do import pytest_bdd as bdd, and I opened an issue here: pytest-dev/pluggy#91

@RonnyPfannschmidt
Copy link
Member

this will be fixed in the next feature release of pytest (which no longer vendors pluggy so the fix that was implemented for pytest-dev/pluggy#17 can be used)

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

No branches or pull requests

3 participants