summaryrefslogtreecommitdiff
path: root/git/test/test_git.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix Git.transform_kwargFrantišek Nečas2019-08-141-0/+1
| | | | | | | Kwargs were not transformed correctly if a value was set to 0 due to wrong if condition. Signed-off-by: František Nečas <fifinecas@seznam.cz>
* Exclude kwarg when NoneAndrew Rabert2018-08-051-1/+3
|
* Add test that raises TypeError in git.execute(..., output_stream=file)Dmitry Nikulin2018-08-051-0/+6
|
* Replace function call with set literalHugo2018-03-181-1/+1
|
* BF(WIN): where could report multiple hits, so choose firstYaroslav Halchenko2017-11-281-1/+1
|
* BF(WIN): use where instead of which while looking for gitYaroslav Halchenko2017-11-281-1/+4
|
* Merge branch 'master' into masterSebastian Thiel2017-09-281-0/+9
|\
| * Renamed refresh to setup and removed alias function & added unittestOdegard, Ken2017-07-091-0/+9
| | | | | | | | | | | | Renamed to simplify and avoid issue with nose tests trying to use `setup` as a setup for testing. Unittest implements basic test for refreshing with a bad git path versus a good git path.
* | test if it accepts environment variables in commandsAnson Mansfield2017-07-191-0/+15
|/
* Python 3.6 invalid escape sequence deprecation fixesVille Skyttä2017-04-091-1/+1
| | | | https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
* Spelling fixesVille Skyttä2017-03-091-2/+2
|
* Merge branch 'cygwin' of https://github.com/ankostis/GitPython into ↵Sebastian Thiel2016-10-221-13/+15
|\ | | | | | | ankostis-cygwin
| * src: import os.path as ospKostis Anagnostopoulos2016-10-161-13/+15
| |
* | Fix flake8 errorBenjamin Poldrack2016-10-191-1/+1
| |
* | Add a test for persistent git optionsBenjamin Poldrack2016-10-181-0/+14
|/
* remote, #525: pump fetch-infos instead of GIL-read stderrKostis Anagnostopoulos2016-10-131-12/+9
| | | | | | + `handle_process_output()` accepts null-finalizer, to pump completely stderr before raising any errors. + test: Enable `TestGit.test_environment()` on Windows (to checks stderr consumption).
* src: No PyDev warningsKostis Anagnostopoulos2016-10-041-2/+2
| | | | | | | | + Mark all unused vars and other non-pep8 (PyDev) warnings + test_utils: + enable & fix forgotten IterableList looped path. + unittestize all assertions. + remote: minor fix progress dispatching unknown err-lines
* io, #519: ALL open() --> with open()Kostis Anagnostopoulos2016-10-011-8/+6
| | | + Some cases had restructuring of code.
* Proc, #519: Rework error-exc msgs & log thread-pumps errorsKostis Anagnostopoulos2016-09-281-2/+4
| | | | | + No WindowsError exception. + Add `test_exc.py` for unicode issues. + Single-arg for decoding-streams in pump-func.
* Win, #519: FIX with_rw_directory() to remove read-only dirsKostis Anagnostopoulos2016-09-281-6/+3
| | | | | + Stop using gitdb's respective helper. + Fix files chmod(555) which CANNOT DELETE on Windows (but do on Linux).
* src: constify is_<platform>() callsKostis Anagnostopoulos2016-09-281-18/+19
| | | + TCs: unittest-asserts for git-tests.
* test, #519: Try appveyor advice for never-ending buildsKostis Anagnostopoulos2016-09-281-1/+0
| | | | | | | | | | | + see http://help.appveyor.com/discussions/problems/5334-nosetests-finsih-bu-build-stuck-and-next-job-dealys-to-start + Use `io.DEFAULT_BUFFER_SIZE`. + test_commit: replace asserts with unittest-asserts. - TRY Popen() NO universal_newlines: NO, reverted in next commits. + [travisci skip]
* src, #519: collect all is_<platform>() callsKostis Anagnostopoulos2016-09-271-2/+2
|
* Win, #519: FIX WinHangs: Popen() CREATE_NEW_PROCESS_GROUP to allow killKostis Anagnostopoulos2016-09-261-2/+3
| | | | | + FIXED most hangs BUT no more `git-daemon` un-killable! + Use logger for utils to replace stray print().
* test, #519: Popen() universal_newlin.es NoWindow in WinfoesKostis Anagnostopoulos2016-09-261-0/+2
| | | | | | + More win-fixes: + Do not check unicode files in < py3. + util, #519: x4 timeout of lock-file blocking, failing in Appveyor.
* test, #519: FIX appveyor conda & failures in py2.6 `assertRaisesRegexp`Kostis Anagnostopoulos2016-09-261-1/+0
|
* apveyor, #519: FIX incomplete Popen pumpKostis Anagnostopoulos2016-09-261-3/+5
| | | | | | | | + The code in `_read_lines_from_fno()` was reading the stream only once per invocation, so when input was larger than `mmap.PAGESIZE`, bytes were forgotten in the stream. + Replaced buffer-building code with iterate-on-file-descriptors. + Also set deamon-threads.
* win: GC.collect on all TC.tearDown to fix appveyor hang runsKostis Anagnostopoulos2016-09-261-0/+4
| | | | | + Fixed the hangs at `test_git:TestGit.test_handle_process_output()`. [travisci skip]
* test, deps: FIX `mock` deps on py3.Kostis Anagnostopoulos2016-09-251-1/+5
| | | | + Del extra spaces, import os.path as osp
* fix(cmd): allow any kind of status messageSebastian Thiel2016-06-131-1/+0
| | | | | I see no need in verifying the status code. It's enough to just get the error.
* Need spaces in Emacs style encoding commentSteven Colby2016-05-181-1/+1
| | | | | Although it's hard to see, PEP-0263 does have ws delimiting the 'coding' string. This commit will fix the root cause of (at least) one bug: https://lists.fedoraproject.org/archives/list/eclipse-sig@lists.fedoraproject.org/thread/5XQ5JRHG6DPPMGRDU7TA2AO4EYS2H7AG/
* Support repeated kwargsVincent Driessen2016-04-191-0/+4
| | | | | | | | | | | | | Some Git command line options are allowed to be repeated multiple times. Examples of this are the -C flag which may occur more than once to "strengthen" its effect, or the -L flag on Git blames, to select multiple blocks of lines to blame. $ git diff -C -C HEAD~1 HEAD $ git blame -L 1-3 -L 12-18 HEAD -- somefile.py This patch supports passing a list/tuple as the value part for kwargs, so that the generated Git command contain the repeated options.
* fix(test): update to changes.Marcos Dione2015-08-201-1/+1
|
* fix(travis): get py2.6 to workSebastian Thiel2015-07-031-1/+1
| | | | Seems like OSX is somewhat special here ... .
* fix(cmd): work with py3Sebastian Thiel2015-07-031-2/+6
| | | | | | Fixed additional test which seems to have different outcomes depending on the interpreter. This just makes it work withouth attempting to find the root cause of the issue.
* fix(cmd): don't open stdout when fetchingSebastian Thiel2015-07-031-11/+21
| | | | | | | This allows us to use the main thread to parse stderr to get progress, and resolve assertion failures hopefully once and for all. Relates to #301
* test(git): remove unnecessary fixtureSebastian Thiel2015-07-031-14/+12
| | | | | Test was adjusted as well to parse only a single file which simulates stderr output.
* fix(cmd): line parsingSebastian Thiel2015-07-031-0/+17
| | | | | | * Previously we could fail to parse the last line within a read buffer, which is now fixed. * Added a test to verify our *slow* line parsing works as expected.
* fix(git-test): assure test does works on linuxSebastian Thiel2015-06-261-1/+2
| | | | | | | It shows that the previous implementation was never really working on linux, and thus failed on travis as well for good reason. Closes #303
* fix(test_git): handle `select.poll()` missingSebastian Thiel2015-06-101-6/+10
| | | | | | | | | In that case, the handler for processing stdout and stderr of the git process is offloaded to threads. These currently don't return any exception they raise. We could easily fix this using an approach as shown [here](http://goo.gl/hnVax6).
* fix(test_cmd): handle GitCommandNotFound in testSebastian Thiel2015-04-081-5/+2
| | | | Related to #248
* Added 'insert_kwargs_after' flag for consumption by _call_process.Sebastian Thiel2015-02-211-0/+4
| | | | | | While at it, all other invocations of .git in remote.py were reviewed Fixes #262
* Removed Git.sshkey() as it couldn't be distributed properly.0.3.6Sebastian Thiel2015-01-221-15/+9
| | | | | | | However, I kept information on how to achieve the same thing with `custom_environment()` in the test. Related to #234
* Added test for `sshkey` context manager.Sebastian Thiel2015-01-221-4/+19
| | | | | | | | It verifies that the script is actually called. Interestingly, the shell script version works within an msysgit environment on windows. Fixes #234
* Intermediate commit on my way to get this finalized.Sebastian Thiel2015-01-221-12/+28
| | | | | Renamed context manager 'with_environment' to 'custom_environment'. On my way to implement sshkey test.
* Add a few testsJonas Trappenberg2015-01-211-0/+20
|
* Improved windows test suite.Sebastian Thiel2015-01-061-1/+6
| | | | Also added code to show how to deal with #147
* Fixed test_git once againSebastian Thiel2015-01-061-2/+12
|
* fixed test_gitSebastian Thiel2015-01-061-2/+2
|
* test_git worksSebastian Thiel2015-01-051-7/+8
|