wanderu / pytest-bandit

pytest plugin to execute bandit across a codebase
MIT License
14 stars 6 forks source link

Register the bandit marker with pytest #12

Closed dmtucker closed 5 years ago

dmtucker commented 5 years ago

Hey there 👋 I like and use this plugin. Thanks for maintaining it! I encountered this while using pytest-bandit:

Unknown pytest.mark.bandit - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html

We encountered a similar issue with pytest-mypy recently: https://github.com/dbader/pytest-mypy/issues/25 As the error says, the solution is to register the marker: https://docs.pytest.org/en/latest/writing_plugins.html#registering-markers

mattwwarren commented 5 years ago

Oh good find! Thanks for the contribution. This looks good to me so I'll get it merged and in a patch version on pypi.