MCPcopy Index your code
hub / github.com/rspeer/python-ftfy / test_failing_json_example

Function test_failing_json_example

tests/test_examples_in_json.py:94–101  ·  view source on GitHub ↗
(test_case)

Source from the content-addressed store, hash-verified

92@pytest.mark.parametrize("test_case", TESTS_THAT_FAIL)
93@pytest.mark.xfail(strict=True)
94def test_failing_json_example(test_case):
95 # Run an example from the data file that we believe will fail, due to
96 # ftfy's heuristic being insufficient
97 orig = test_case["original"]
98 fixed = test_case["fixed"]
99
100 encoding_fix, plan = fix_encoding_and_explain(orig)
101 assert encoding_fix == test_case.get("fixed-encoding", fixed)

Callers

nothing calls this directly

Calls 1

fix_encoding_and_explainFunction · 0.90

Tested by

no test coverage detected