(json_hit, current_line)
| 964 | |
| 965 | |
| 966 | def _check_current_line(json_hit, current_line): |
| 967 | if not isinstance(current_line, (list, tuple)): |
| 968 | current_line = (current_line,) |
| 969 | for frame in json_hit.stack_trace_response.body.stackFrames: |
| 970 | if "(Current frame)" in frame["name"]: |
| 971 | if frame["line"] not in current_line: |
| 972 | rep = json.dumps(json_hit.stack_trace_response.body.stackFrames, indent=4) |
| 973 | raise AssertionError("Expected: %s to be one of: %s\nFrames:\n%s." % (frame["line"], current_line, rep)) |
| 974 | |
| 975 | break |
| 976 | else: |
| 977 | rep = json.dumps(json_hit.stack_trace_response.body.stackFrames, indent=4) |
| 978 | raise AssertionError("Could not find (Current frame) in any frame name in: %s." % (rep)) |
| 979 | |
| 980 | |
| 981 | @pytest.mark.parametrize("stop", [False, True]) |
no test coverage detected