Skip to content

Importing pytest_* modules should not trigger PluginValidationError #91

@The-Compiler

Description

@The-Compiler

In pytest-dev/pytest-bdd#224 @soulrebel had an issue when importing pytest_bdd in his conftest.py file:

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

This seems odd - importing a pytest_* module should work normally, no? Maybe pluggy should at least check that unknown hooks aren't module objects?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions