summaryrefslogtreecommitdiff
path: root/test/test_diff.py
Commit message (Collapse)AuthorAgeFilesLines
* Updated diff test to use different similarity thresholdsCesar Velazquez2023-02-011-3/+26
|
* Added diff test to disable rename detectionCesar Velazquez2023-01-311-0/+47
|
* Ignore empty info in diff lineDave Wapstra2022-09-271-0/+6
|
* Fix bug where colons in paths raise a `ValueError` on `diff()` calls.Malcolm Langfield2022-09-121-1/+0
| | | | | | | | | | | | | | | | | This commit introduces a potential fix for #1490 and #1483, in which an `invalid literal for int() with base 10: 'n'` exception was raised within a diff operation. Within `_handle_diff_line()`, we split the output of `git diff-tree` on colons (`:` characters), under the assumption that there are no colons within the paths of the files being diffed. On POSIX systems this is not a valid assumption. The fix is to split on `\x00:`, since a null character always precedes the colons we actually need to split on. A test already existed for this case (`test_diff_file_with_colon()`), but it was marked as skipped. * Split on `\x00:` instead of `:` in `_handle_diff_line()`. * Unskip `test_diff_file_with_colon()`.
* reformat according to 'black' configuration file.Sebastian Thiel2022-05-181-21/+7
|
* Run everything through 'black'Sebastian Thiel2022-05-181-97/+139
| | | | | That way people who use it won't be deterred, while it unifies style everywhere.
* Fix various typosluz paz2022-05-071-1/+1
| | | Found via `codespell -q 3 -S ./git/ext/gitdb,./test/fixtures/reflog_master,./test/fixtures/diff_mode_only,./test/fixtures/reflog_HEAD`
* add initial types to remote.pyyobmod2021-05-031-0/+7
|
* try fixing up test fixtures and implementationSebastian Thiel2021-01-061-4/+8
|
* tests: move to root dirKonrad Weihmann2020-07-121-0/+369
| | | | | | | | | This should ensure that tests are NOT packaged into release package by setuptools, as tests are development only + fixtures after moving Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
* Revert moving tests out of 'git' folder, related to #1030Sebastian Thiel2020-07-121-369/+0
|
* tests: move to root dirKonrad Weihmann2020-07-121-0/+369
| | | | | | | | | This should ensure that tests are NOT packaged into release package by setuptools, as tests are development only + fixtures after moving Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
* Moved everything into the git subdirectory - some tests still need to be ↵Sebastian Thiel2010-11-251-108/+0
| | | | adjusted
* Updated MANIFEST and setup to include fixtures. Adjusted includes in all ↵Sebastian Thiel2010-11-211-1/+1
| | | | tests to work with the new directory structure
* flattened test folder structure, didn't adjust any file content yetSebastian Thiel2010-11-211-0/+108