Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/tools/lint/test/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  test_python_sites.py

  Sprache: Python
 

# 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 mozunit

LINTER = "python-sites"


def test_lint_python_sites(lint, paths):
    results = lint(paths())
    assert len(results) == 3

    for r in results:
        assert "bad/test.txt" in r.relpath
        assert r.level == "error"
        assert r.lineno == 1

    expected_messages = [
        "After 'requires-python:', entries must be in alphabetical order.",
        "First line must start with 'requires-python:'.",
        "Specification of 'vendored:third_party/python/blessed' is redundant; already in",
    ]
    actual_messages = [r.message for r in results]

    missing = [
        msg
        for msg in expected_messages
        if not any(msg in actual for actual in actual_messages)
    ]
    assert not missing, f"Missing expected message(s): {missing}"


if __name__ == "__main__":
    mozunit.main()

Messung V0.5 in Prozent
C=95 H=97 G=95

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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 und die Messung sind noch experimentell.