Skip to content

Commit

Permalink
fix problem with addinivalue_line
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Moro authored and davidemoro committed Jun 13, 2017
1 parent 8a10529 commit 07d93f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions pypom_navigation/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@
from .parametrizer import Parametrizer


def pytest_configure(config):
# register an additional marker
config.addinivalue_line(
"markers",
"skip_skins(skins): mark test to be skipped for the given skin ids"
)


def skip_skins(skins):
"""
Decorator to mark tests to be skipped for the given skin ids.
Expand Down
2 changes: 0 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ addopts =
pypom_navigation
python_files = test*py
pep8ignore = E501 E122 E123 E125 E128 E711 E402
markers =
skip_skins: mark tests you want to skip for one or more skins

0 comments on commit 07d93f8

Please sign in to comment.