summaryrefslogtreecommitdiff
path: root/git/test/test_git.py
Commit message (Collapse)AuthorAgeFilesLines
* tests: move to root dirKonrad Weihmann2020-07-121-281/+0
| | | | | | | | | 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-0/+281
|
* tests: move to root dirKonrad Weihmann2020-07-121-281/+0
| | | | | | | | | 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>
* Remove now unnecessary explicit Unicode string literal prefixesHarmon2020-02-251-2/+2
|
* Remove test.lib.asserts and use unittest.mock.patch directlyHarmon2020-02-161-3/+2
|
* Replace assert_true with assertTrueHarmon2020-02-161-3/+2
| | | | Also change TestOutputStream to subclass TestBase rather than object
* Replace raises with assertRaisesHarmon2020-02-161-5/+2
|
* Replace assert_equal with assertEqualHarmon2020-02-161-16/+15
| | | | Also change TestActor to subclass TestBase rather than object and create and use base TestCommitSerialization class for assert_commit_serialization method
* Remove and replace assert_match with assertRegexHarmon2020-02-161-2/+1
| | | | Also remove no longer used assert_not_none
* Remove outdated checks for unittest.mock existenceHarmon2020-02-161-6/+1
|
* Replace deprecated assertEquals alias with assertEqual in TestGitHarmon2020-02-161-4/+4
|
* Replace deprecated failUnlessRaises alias with assertRaises in testsHarmon2020-02-161-2/+2
|
* Remove checks for Python 2 and/or 3Harmon2020-02-081-9/+3
|
* Fix #889: Add DeepSource config and fix some major issuesMohit Solanki2019-09-101-5/+8
|
* Fix Git.transform_kwargFrantišek Nečas2019-07-291-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