# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/.
from ..fixtures import * # noqa: F403
def pytest_generate_tests(metafunc): """Generate tests based on markers."""
if"session"notin metafunc.fixturenames: return
marks = [mark.name for mark in metafunc.function.pytestmark]
otherargs = {}
argvalues = []
ids = []
if"only_platforms"in marks: for mark in metafunc.function.pytestmark: if mark.name == "only_platforms":
otherargs["only_platforms"] = mark.args
if"skip_platforms"in marks: for mark in metafunc.function.pytestmark: if mark.name == "skip_platforms":
otherargs["skip_platforms"] = mark.args
if"need_visible_scrollbars"in marks: for mark in metafunc.function.pytestmark: if mark.name == "need_visible_scrollbars":
otherargs["need_visible_scrollbars"] = mark.args
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.