(fixtures)
| 249 | |
| 250 | |
| 251 | def test_diff_file_added(fixtures): |
| 252 | b_loc = ScanLocation(fixtures.path("diffs/1_a/src.py")) |
| 253 | |
| 254 | d = diff.DiffAnalyzer() |
| 255 | d.compare([], [b_loc]) |
| 256 | |
| 257 | assert len(d.diffs) == 1 |
| 258 | x = d.diffs[0] |
| 259 | |
| 260 | assert x.operation == "A" |
| 261 | assert x.a_scan is None |
| 262 | assert x.b_scan is b_loc |
| 263 | assert x.similarity == 0.0 |
| 264 | assert x.diff is None |
| 265 | |
| 266 | |
| 267 | def test_diff_file_removed(fixtures): |
nothing calls this directly
no test coverage detected