question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`PluginValidationError`: unknown hook 'pytest_fixture_plus'

See original GitHub issue

From https://github.com/smarie/python-pytest-cases/issues/71

When the user writes from pytest_cases import pytest_fixture_plus in his conftest.py, the symbol is mistakenly thought as being a plugin hook by pytest, because the symbol name starts with pytest_.

My question is therefore simple: what is the recommended way to fix this issue in pytest_cases without renaming the symbol ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
RonnyPfannschmidtcommented, Jan 17, 2020

lets open a pluggy issue for marking something as NOT A HOOK

1reaction
RonnyPfannschmidtcommented, Jan 17, 2020

as long as its also documented that this is a time bomb in the sense that its just waiting for someone to register a hook with that name

Read more comments on GitHub >

github_iconTop Results From Across the Web

pluggy.manager.PluginValidationError: unknown hook ...
I am facing following issue when calling: pytest --template=html1/index.html --report=reportExecution.html (venv) (base) ➜ HackerNews ...
Read more >
Alternative to pytest namespace after upgrade to 3.7.4 - Error
After the successful installation of the above plugins, Somehow the PluginValidationError: unknown hook 'pytest_namespace' in plugin error ...
Read more >
How to run unit tests? - Development - PsychoPy Discourse
I have a few ideas for stuff I'd like to contribute. I cloned the github repo and made some changes, but I fail...
Read more >
How to use the pluggy.manager.PluginValidationError ... - Snyk
PluginValidationError examples, based on popular ways it is used in public ... raise PluginValidationError( hookimpl.plugin, "unknown hook %r in plugin %r" ...
Read more >
pluggy.manager — pytest documentation
You can register plugin objects (which contain hooks) by calling ... raise PluginValidationError( hookimpl.plugin, "unknown hook %r in plugin %r" % (name, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found