MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / test_diff_json_output_e2e

Function test_diff_json_output_e2e

tests/test_outputs.py:320–332  ·  view source on GitHub ↗
(fixtures, fuzzy_rule_match)

Source from the content-addressed store, hash-verified

318
319@pytest.mark.e2e
320def test_diff_json_output_e2e(fixtures, fuzzy_rule_match):
321 pth1 = fixtures.path("diffs/1_a")
322 pth2 = fixtures.path("diffs/1_b")
323 try:
324 raw_output = fixtures.get_cli_output(["diff", pth1, pth2, "-f", "json"])
325 except FeatureDisabled as exc:
326 pytest.mark.skipif(reason=exc.args[0])
327
328 output = json.loads(raw_output.stdout)
329 diffs = output["diffs"]
330
331 for match in DIFF_MATCHES:
332 assert any(fuzzy_rule_match(x, match) for x in diffs), (match, diffs)
333
334
335@pytest.mark.e2e

Callers

nothing calls this directly

Calls 3

fuzzy_rule_matchFunction · 0.85
pathMethod · 0.80
get_cli_outputMethod · 0.80

Tested by

no test coverage detected