Extract one Python file and return {(caller_id, callee_id)} for calls edges.
(tmp_path, source)
| 2597 | |
| 2598 | |
| 2599 | def _python_call_pairs(tmp_path, source): |
| 2600 | """Extract one Python file and return {(caller_id, callee_id)} for calls edges.""" |
| 2601 | f = tmp_path / "svc.py" |
| 2602 | f.write_text(source, encoding="utf-8") |
| 2603 | result = extract([f], cache_root=tmp_path) |
| 2604 | return {(e["source"], e["target"]) for e in result["edges"] if e["relation"] == "calls"} |
| 2605 | |
| 2606 | |
| 2607 | def test_python_self_call_binds_to_own_class_not_last_declared(tmp_path): |
no test coverage detected