# 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/.
import os import sys from argparse import Namespace
@pytest.fixture(scope="module") def files(filedir, request):
suffix_filter = getattr(request.module, "files", [""]) return [
os.path.join(filedir, p) for p in os.listdir(filedir) if any(p.endswith(suffix) for suffix in suffix_filter)
]
@pytest.fixture(scope="module") def linters(lintdir): def inner(*names): return [
os.path.join(lintdir, p) for p in os.listdir(lintdir) if any(os.path.splitext(p)[0] == name for name in names) if os.path.splitext(p)[1] == ".yml"
]
return inner
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet)
¤
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.