(op, left, right)
| 68 | |
| 69 | |
| 70 | def 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 | # |
nothing calls this directly
no outgoing calls
no test coverage detected