(fixtures, fuzzy_rule_match)
| 232 | |
| 233 | @pytest.mark.e2e |
| 234 | def test_diff_output_comprehensive(fixtures, fuzzy_rule_match): |
| 235 | arch1 = fixtures.path("mirror/wheel-0.34.2-py2.py3-none-any.whl") |
| 236 | arch2 = fixtures.path("mirror/wheel-0.33.0-py2.py3-none-any.whl") |
| 237 | |
| 238 | matches = [ |
| 239 | { |
| 240 | "operation": "M", |
| 241 | "a_ref": "wheel-0.34.2-py2.py3-none-any.whl", |
| 242 | "b_ref": "wheel-0.33.0-py2.py3-none-any.whl", |
| 243 | "a_size": 26502, |
| 244 | "b_size": 21497, |
| 245 | "a_mime": "application/zip", |
| 246 | "b_mime": "application/zip", |
| 247 | "a_md5": "8a2e3b6aca9665a0c6abecc4f4ea7090", |
| 248 | "b_md5": "6731b8ca8703150e2304613a25ff674f", |
| 249 | }, |
| 250 | { |
| 251 | "operation": "M", |
| 252 | "a_ref": "wheel-0.34.2-py2.py3-none-any.whl$wheel/wheelfile.py", |
| 253 | "b_ref": "wheel-0.33.0-py2.py3-none-any.whl$wheel/wheelfile.py", |
| 254 | "a_size": 7298, |
| 255 | "b_size": 7168, |
| 256 | "a_mime": "text/x-python", |
| 257 | "b_mime": "text/x-python", |
| 258 | "a_md5": "8d4db173db397856d959ad08cd4745e7", |
| 259 | "b_md5": "f92b90ab7015c47a95553f4224551229", |
| 260 | #"similarity": lambda x: x > 0.6, |
| 261 | "removed_detections": [ |
| 262 | { |
| 263 | "type": "ModuleImport", |
| 264 | "extra": { |
| 265 | "root": "stat", |
| 266 | "name": "stat" |
| 267 | }, |
| 268 | "line": "import stat" |
| 269 | } |
| 270 | ] |
| 271 | }, |
| 272 | { |
| 273 | "operation": "M", |
| 274 | "a_ref": "wheel-0.34.2-py2.py3-none-any.whl$wheel/cli/pack.py", |
| 275 | "b_ref": "wheel-0.33.0-py2.py3-none-any.whl$wheel/cli/pack.py", |
| 276 | "a_size": 3208, |
| 277 | "b_size": 2268, |
| 278 | "a_mime": "text/x-python", |
| 279 | "b_mime": "text/x-python", |
| 280 | "a_md5": "67ba28165400d5b8c829d1b78989de45", |
| 281 | "b_md5": "57241c2632d667f1f5bac5ce77fecfd7", |
| 282 | "new_detections": [ |
| 283 | { |
| 284 | "type": "FunctionCall", |
| 285 | "extra": { |
| 286 | "function": "open" |
| 287 | }, |
| 288 | "line": "with open(os.path.join(directory, dist_info_dir, 'WHEEL')) as f:" |
| 289 | } |
| 290 | ], |
| 291 | "removed_detections": [ |
nothing calls this directly
no test coverage detected