(test_case)
| 92 | @pytest.mark.parametrize("test_case", TESTS_THAT_FAIL) |
| 93 | @pytest.mark.xfail(strict=True) |
| 94 | def 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) |
nothing calls this directly
no test coverage detected