aboutsummaryrefslogtreecommitdiff
path: root/git/test/lib
AgeCommit message (Collapse)Author
2020-07-12tests: move to root dirKonrad Weihmann
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>
2020-07-12Revert moving tests out of 'git' folder, related to #1030Sebastian Thiel
2020-07-12tests: move to root dirKonrad Weihmann
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>
2020-02-16Remove test.lib.asserts and use unittest.mock.patch directlyHarmon
2020-02-16Replace assert_false with assertFalseHarmon
2020-02-16Replace assert_true with assertTrueHarmon
Also change TestOutputStream to subclass TestBase rather than object
2020-02-16Replace raises with assertRaisesHarmon
2020-02-16Replace assert_raises with assertRaisesHarmon
2020-02-16Replace assert_not_equal with assertNotEqualHarmon
2020-02-16Replace assert_equal with assertEqualHarmon
Also change TestActor to subclass TestBase rather than object and create and use base TestCommitSerialization class for assert_commit_serialization method
2020-02-16Remove and replace assert_match with assertRegexHarmon
Also remove no longer used assert_not_none
2020-02-16Remove old, no longer used assert methodsHarmon
assert_instance_of, assert_not_instance_of, assert_none, assert_not_match, assert_mode_644, assert_mode_755
2020-02-16Remove outdated checks for unittest.mock existenceHarmon
2020-02-16Replace deprecated failUnlessRaises alias with assertRaises in testsHarmon
2020-02-08Remove check for Python 2.7Harmon
2020-02-08Remove and replace compat.string_typesHarmon
2019-08-14Fix performance regression, see #906Sebastian Thiel
Revert "use git rev-parse to look for config file" This reverts commit 0b6b90f9f1e5310a6f39b75e17a04c1133269e8f. Fix #906 Reopen #719
2019-08-11use git rev-parse to look for config fileBenjamin Dauvergne
2018-03-18Drop support for EOL Python 2.6Hugo
2017-12-11Merge branch 'bf-includes' of https://github.com/yarikoptic/GitPython into ↵Sebastian Thiel
yarikoptic-bf-includes
2017-11-27RF: primarily flake8 lints + minor RF to reduce duplication in PATHEXTYaroslav Halchenko
I did keep some "bare" except with catch all Exception: , while tried to disable flake8 complaints where clearly all exceptions are to be catched
2017-11-27BF: process included files before the restYaroslav Halchenko
2017-04-09Python 3.6 invalid escape sequence deprecation fixesVille Skyttä
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
2017-03-09Spelling fixesVille Skyttä
2016-12-08fix(leaks, TCs): attempt to cleanup mman before deleting tmp-dirsKostis Anagnostopoulos
2016-10-24Fixes to support Python 2.6 again.Andreas Maier
Details: - Added Python 2.6 again to .travis.yml (it was removed in commit 4486bcb). - Replaced the use of dictionary comprehensions in `git/cmd.py` around line 800 with the code before that change (in commit 25a2ebf). Reason: dict comprehensions were introduced only in Python 2.7. - Changed the import source for `SkipTest` and `skipIf` from `unittest.case` to first trying `unittest` and upon ImportError from `unittest2`. This was done in `git/util.py` and in several testcases. Reason: `SkipTest` and `skipIf` were introduced to unittest only in Python 2.7, and `unittest2` is a backport of `unittest` additions to Python 2.6. - In git/test/lib/helper.py, fixed the definition of `assertRaisesRegex` to work on py26. - For Python 2.6, added the `unittest2` dependency to `requirements.txt` and changed `.travis.yml` to install `unittest2`. Because git/util.py uses SkipTest from unittest/unittest2, the dependency could not be added to `test-requirements.txt`. - Fixed an assertion in `git/test/test_index.py` to also allow a Python 2.6 specific exception message. - In `is_cygwin_git()` in `git/util.py`, replaced `check_output()` with `Popen()`. It was added in Python 2.7. - Enabled Python 2.6 for Windows: - Added Python 2.6 for MINGW in .appveyor.yml. - When defining `PROC_CREATIONFLAGS` in `git/cmd.py`, made use of certain win32 and subprocess flags that were introduced in Python 2.7, dependent on whether we run on Python 2.7 or higher. - In `AutoInterrupt.__del__()` in `git/cmd.py`, allowed for `os` not having `kill()`. `os.kill()` was added for Windows in Python 2.7 (For Linux, it existed in Python 2.6 already).
2016-10-22Merge branch 'cygwin' of https://github.com/ankostis/GitPython into ↵Sebastian Thiel
ankostis-cygwin
2016-10-20Fix some typosSantiago Castro
2016-10-17tc-helper: fix minor contexlib abuseKostis Anagnostopoulos
2016-10-17helper: minor fix prefix of temp-dirsKostis Anagnostopoulos
2016-10-14cygwin, #533: FIX daemon launchingKostis Anagnostopoulos
+ Rework git-daemon launching with `with` resource-management. + cmd: add `is_cygwin` optional override kwd on `Git.polish_url()`. - Cygwin TCs failing: - PY2: err: 13, fail: 3 - PY3: err: 12, fail: 3
2016-10-14cygwin, #533: Try to make it work with Cygwin's Git.Kostis Anagnostopoulos
+ Make `Git.polish_url()` convert paths into Cygwin-friendly paths. + Add utility and soe TCs for funcs for detecting cygwin and converting abs-paths to `/cygdrive/c/...`. - Cygwin TCs failing: - PY2: err: 14, fail: 3 - PY3: err: 13, fail: 3
2016-10-14remote, #525: FIX BUG push-cmd misses error messagesKostis Anagnostopoulos
+ Bug discovered after enabling TC in prev commit and rework of fetch. + remote_tc: unitestize assertions. + util: DEL unused `_mktemp()`.
2016-10-12config, #525: polish more config-urlsKostis Anagnostopoulos
2016-10-12daemon, #525: simplify exception handlingKostis Anagnostopoulos
2016-10-12daemon, #525: FIX remote urls in config-filesKostis Anagnostopoulos
+ Parse most remote & config-urls \-->/. + Used relative daemon-paths. + Use git-daemon PORT above 10k; on Windows all below need Admin rights. +FIXED git-daemon @with_rw_and_rw_remote_repo(): + test_base.test_with_rw_remote_and_rw_repo() PASS. + test_remote.test_base() now freezes! (so still hidden win_err) + repo_test: minor finally delete test-repos created inside this repo. + util: delete unused `absolute_project_path()`.
2016-10-11FIX #526: Do not depend on test-sourcesKostis Anagnostopoulos
+ Move `HIDE_WINDOWS_KNOWN_ERRORS` flag from `git.test.lib.helper-->git.util`; regular modules in main-sources folder also depend on that flag. + Use unittest.SkipTest instead of from non-standard `nose` lib.
2016-10-04io: Wrap (probably) allconfig_writers in `with` blocksKostis Anagnostopoulos
2016-10-04src: No PyDev warningsKostis Anagnostopoulos
+ 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
2016-10-04hidden win-errs: Let leaking TCs run till end, then hideKostis Anagnostopoulos
+ Detect code breaking the body of TCs eventually hidden win-errors by raising SkipTest ALAP. + submodule.base.py: import classes from `git.objects` instead of `utils`. + had to ++ ulimit 100->110 for the extra code tested (more leaks :-) + Centralize is_win detection.
2016-10-03Appveyor: Set HIDE_WINDOWS_KNOWN_ERRORS=TrueKostis Anagnostopoulos
+ Update error-conditions for PY-versions. + The purpose is to have NO TC FAILURES (with the minimum possible conditions).
2016-10-03Appveyor: Add and set HIDE_WINDOWS_KNOWN_ERRORS=Falsewinerr_showKostis Anagnostopoulos
+ Collect all "acknowledged" failing TCs on Appveyor and use "HIDE_WINDOWS_KNOWN_ERRORS" var to hide them.
2016-10-02BF: log.info is a function, just pass msg, no .write!Yaroslav Halchenko
2016-10-02BF: @with_rw_directory must return decorated callYaroslav Halchenko
As it was - many tests were simply not accounted/run at all
2016-10-02RF: use @functools.wraps within decorators instead of manual __name__ ↵Yaroslav Halchenko
reassignment @wraps does more and does it right ;)
2016-10-01io, #519: ALL open() --> with open()Kostis Anagnostopoulos
+ Some cases had restructuring of code.
2016-09-28remote, #519: INCOMPLETE FIX-2 double-decoding push-infosKostis Anagnostopoulos
+ Unicode PY2/3 issues fixed also in pump stream func.
2016-09-28remote, #519: FIX1-of-2 double-decoding push-infosKostis Anagnostopoulos
+ When `universal_lines==True` (515a6b9ccf8) must tel `handle_process_output` to stop decoding strings.
2016-09-28Win, #519: FIX with_rw_directory() to remove read-only dirsKostis Anagnostopoulos
+ Stop using gitdb's respective helper. + Fix files chmod(555) which CANNOT DELETE on Windows (but do on Linux).
2016-09-28src: constify is_<platform>() callsKostis Anagnostopoulos
+ TCs: unittest-asserts for git-tests.