JOJ3-config-generator/tests/convert/test_convert_cases.py
王韵晨520370910012 f26a6e8f90
Some checks failed
build / build (push) Failing after 2m48s
build / trigger-build-image (push) Has been skipped
build / build (pull_request) Failing after 2m2s
build / trigger-build-image (pull_request) Has been skipped
feat: add whitelist character support in repo toml
This commit introduces a new key, `health-check.whitelisted-chars` for
repo.toml. It allows TAs to configure repo-wide allowed non ASCII chars
for the repo-health-checker binary. It results in a new command line
switch, `-whitelisted-chars=X,Y,Z`, in the generated task.json.
2026-04-07 16:14:07 -07:00

58 lines
882 B
Python

import pytest
from pydantic import ValidationError
from tests.convert.utils import load_case
def test_basic() -> None:
load_case("basic")
def test_clang_tidy() -> None:
load_case("clang-tidy")
def test_cppcheck() -> None:
load_case("cppcheck")
def test_cpplint() -> None:
load_case("cpplint")
def test_diff() -> None:
load_case("diff")
def test_elf() -> None:
load_case("elf")
def test_empty() -> None:
load_case("empty")
def test_extra_field() -> None:
with pytest.raises(ValidationError):
load_case("extra-field")
def test_full() -> None:
load_case("full")
def test_keyword() -> None:
load_case("keyword")
def test_result_detail() -> None:
load_case("result-detail")
def test_unnecessary() -> None:
load_case("unnecessary")
def test_whitelisted_chars() -> None:
load_case("whitelisted-chars")