File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -187,18 +187,14 @@ def test_call_edges_from_entrypoint(self) -> None:
187187 def test_local_call_is_certain (self ) -> None :
188188 _ , graph = _parse_sample ()
189189 calls = [e for e in graph .edges if e .kind == EdgeKind .CALLS ]
190- local_calls = [
191- e for e in calls if "begin" in e .source_id and "add_values" in e .target_id
192- ]
190+ local_calls = [e for e in calls if "begin" in e .source_id and "add_values" in e .target_id ]
193191 assert len (local_calls ) == 1
194192 assert local_calls [0 ].confidence == EdgeConfidence .CERTAIN
195193
196194 def test_cross_module_call_is_inferred (self ) -> None :
197195 _ , graph = _parse_sample ()
198196 calls = [e for e in graph .edges if e .kind == EdgeKind .CALLS ]
199- cross_calls = [
200- e for e in calls if "begin" in e .source_id and "checked_add" in e .target_id
201- ]
197+ cross_calls = [e for e in calls if "begin" in e .source_id and "checked_add" in e .target_id ]
202198 assert len (cross_calls ) == 1
203199 assert cross_calls [0 ].confidence == EdgeConfidence .INFERRED
204200
You can’t perform that action at this time.
0 commit comments