pytest: Add a skip mark for use with bdd.
This commit is contained in:
parent
1db662fbff
commit
1619b89df7
@ -11,6 +11,7 @@ markers =
|
|||||||
not_xvfb: Tests which can't be run with Xvfb.
|
not_xvfb: Tests which can't be run with Xvfb.
|
||||||
frozen: Tests which can only be run if sys.frozen is True.
|
frozen: Tests which can only be run if sys.frozen is True.
|
||||||
integration: Tests which test a bigger portion of code, run without coverage.
|
integration: Tests which test a bigger portion of code, run without coverage.
|
||||||
|
skip: Always skipped test.
|
||||||
flakes-ignore =
|
flakes-ignore =
|
||||||
UnusedImport
|
UnusedImport
|
||||||
UnusedVariable
|
UnusedVariable
|
||||||
|
@ -62,6 +62,7 @@ def _apply_platform_markers(item):
|
|||||||
"Can only run when frozen"),
|
"Can only run when frozen"),
|
||||||
('not_xvfb', item.config.xvfb_display is not None,
|
('not_xvfb', item.config.xvfb_display is not None,
|
||||||
"Can't be run with Xvfb."),
|
"Can't be run with Xvfb."),
|
||||||
|
('skip', True, "Always skipped."),
|
||||||
]
|
]
|
||||||
|
|
||||||
for searched_marker, condition, default_reason in markers:
|
for searched_marker, condition, default_reason in markers:
|
||||||
|
Loading…
Reference in New Issue
Block a user