MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / pytest_assertrepr_compare

Function pytest_assertrepr_compare

tests/conftest.py:70–83  ·  view source on GitHub ↗
(op, left, right)

Source from the content-addressed store, hash-verified

68
69
70def pytest_assertrepr_compare(op, left, right):
71 if isinstance(left, str) and isinstance(right, str) and op == "in":
72 return [
73 "Did not find expected output in test.",
74 "",
75 "Expected to find:",
76 "",
77 *left.splitlines(),
78 "",
79 "Actual output:",
80 "",
81 *right.splitlines(),
82 ]
83 return []
84
85
86#

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected