Ctrl K
ComunidadGuías…

tests/test_audit_locale_mutation.py

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
from scripts.audit_locale_mutation import audit_source


def test_locale_audit_allows_local_formatters():
    assert audit_source("formatter = BabelFormatter()\n") == []


def test_locale_audit_reports_process_mutation():
    assert audit_source("locale.setlocale(locale.LC_ALL, 'C')\n") == [
        "locale.setlocale() mutates process-wide locale on line 1"
    ]