summaryrefslogtreecommitdiff
path: root/git/test/test_remote.py
Commit message (Collapse)AuthorAgeFilesLines
* tests: move to root dirKonrad Weihmann2020-07-121-653/+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/+653
|
* tests: move to root dirKonrad Weihmann2020-07-121-653/+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>
* Replace assert_raises with assertRaisesHarmon2020-02-161-4/+3
|
* Replace deprecated failUnlessRaises alias with assertRaises in testsHarmon2020-02-161-11/+11
|
* Remove and replace compat.string_typesHarmon2020-02-081-3/+2
|
* Removing unused importJJ Graham2019-10-241-1/+1
|
* Fix #820JJ Graham2019-10-241-1/+1
|
* removed trailing whitespacesPratik Anurag2019-10-151-1/+1
|
* renamed unsed variablesPratik Anurag2019-10-151-1/+1
|
* Parse rejected deletes.Uri Baghin2019-09-281-0/+8
|
* Remove assert that can fail erroneously.Uri Baghin2019-09-281-1/+0
|
* Resolve test incompatibility with git v2.21.0James E. King III2019-05-051-1/+1
| | | | This fixes #869
* Fix test-only issue with git 2.20 or later handling a clobbered tagJames E. King III2019-03-151-2/+8
|
* Rewrite unnecessary dict/list/tuple calls as literalsHugo2018-03-181-2/+2
|
* Drop support for EOL Python 2.6Hugo2018-03-181-4/+1
|
* Spelling fixesVille Skyttä2017-03-091-1/+1
|
* fix(remote): testSebastian Thiel2016-12-221-1/+1
| | | | | Should have paid more attention to the test-failure before pushing the fix.
* Fixes to support Python 2.6 again.Andreas Maier2016-10-241-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* remote, #525: FIX BUG push-cmd misses error messagesKostis Anagnostopoulos2016-10-141-59/+73
| | | | | | + Bug discovered after enabling TC in prev commit and rework of fetch. + remote_tc: unitestize assertions. + util: DEL unused `_mktemp()`.
* test, #525: allow disabling freeze errors separatelyKostis Anagnostopoulos2016-10-131-40/+45
| | | | | + cmd: use DEVNULL for non PIPEs; no open-file. + TCs: some unitestize-assertions on base & remote TCs.
* daemon, #525: FIX remote urls in config-filesKostis Anagnostopoulos2016-10-121-10/+9
| | | | | | | | | | | | + 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()`.
* hidden win_errors: mark also git-daemon errors failingKostis Anagnostopoulos2016-10-111-0/+6
|
* io: Wrap (probably) allconfig_writers in `with` blocksKostis Anagnostopoulos2016-10-041-8/+8
|
* src: No PyDev warningsKostis Anagnostopoulos2016-10-041-3/+3
| | | | | | | | + 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-2/+2
| | | + Some cases had restructuring of code.
* Win, #519: FIX with_rw_directory() to remove read-only dirsKostis Anagnostopoulos2016-09-281-3/+2
| | | | | + Stop using gitdb's respective helper. + Fix files chmod(555) which CANNOT DELETE on Windows (but do on Linux).
* Win, #519: FIX undead Git-daemon on WindowsKostis Anagnostopoulos2016-09-281-3/+1
| | | | | | | | | | | + On MINGW-git, daemon exists but if invoked as 'git daemon', DAEMON CANNOT DIE! + So, launch `git-daemon` on Apveyor, but - remote TCs fail due to paths problems. + Updated README instructions on Windows. + Restore disabled remote TCs on Windows. + Disable failures on daemon-tests only the last moment (raise SkipTest) so when ready, it will also pass.
* test, #519: No remote TCs, git-daemon cannot die@!Kostis Anagnostopoulos2016-09-281-2/+4
|
* 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]
* Adding support for git remote set-url/get-url API to RemoteGuyzmo2016-06-081-2/+47
| | | | | | | | | | | | | | | | | Both commands enable handling of a little known feature of git, which is to support multiple URL for one remote. You can add multiple url using the `set_url` subcommand of `git remote`. As listing them is also handy, there's a nice method to do it, using `get_url`. * adding set_url method that maps to the git remote set-url command¶ * can be used to set an URL, or replace an URL with optional positional arg¶ * can be used to add, delete URL with kwargs (matching set-url options)¶ * adding add_url, delete_url methods that wraps around set_url for conveniency¶ * adding urls property that yields an iterator over the setup urls for a remote¶ * adding a test suite that checks all use case scenarii of this added API.¶ Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
* fix(RemoteProgress): improve message sanitizationSebastian Thiel2016-05-251-0/+8
| | | | | | Don't allow `, ` prefixes or suffixes in messages. Fixes #438
* fix(remote): assert fetch respec is setSebastian Thiel2015-06-101-0/+5
| | | | | | | | | | | | It turns out we can't deal do fetches if no refspec is set as git will change the format of the fetch return values, providing less information than usual. A test was added to show that such a case will fail, and an assertion will assure we don't attempt to fetch/pull if there is no refspec for 'fetch'. Closes #296
* test: make git-daemon port configurable via envBenedikt Morbach2015-04-211-2/+3
| | | | | add a GIT_PYTHON_TEST_GIT_DAEMON_PORT to set a port other than 9418, for example for when you already have a daemon running on that port.
* fix(remote): allow to raise during push/fetchSebastian Thiel2015-04-081-2/+1
| | | | | | | | | | Do not swallow non-zero exit status during push and fetch unless we managed to parse head information. This behaviour will effetively handle cases were no work was done due to invalid refspecs or insufficient permissions. Fixes #271
* Added 'insert_kwargs_after' flag for consumption by _call_process.Sebastian Thiel2015-02-211-0/+3
| | | | | | While at it, all other invocations of .git in remote.py were reviewed Fixes #262
* This should fix the test failure on travisSebastian Thiel2015-01-301-0/+5
|
* Added test to verify we can handle fetch prunes.Sebastian Thiel2015-01-301-0/+13
| | | | | | They are just skipped. Fixes #249
* Merge branch 'master' into teeberg-masterSebastian Thiel2015-01-221-1/+15
|\ | | | | | | | | | | Need latest master to proceed with test Conflicts: doc/source/tutorial.rst
| * Fetch now deals with custom refspecs much better.Sebastian Thiel2015-01-221-1/+15
| | | | | | | | | | | | | | | | | | Even though the test-csae only verifies this spec: +refs/pull/*:refs/heads/pull/* I could locally verify that it indeed handles other ones just as well: +refs/pull/*:refs/pull/* Fixes #243
* | Fix some typosJonas Trappenberg2015-01-211-2/+2
|/
* Added advance usage examples to tutorial and made minor fixes.Sebastian Thiel2015-01-211-0/+4
| | | | | | GIT_PYTHON_TRACE would actually fail (now) if we debugged archive operations. Related to #239
* Remote.fetch|pull() will not use poll/threads anymore as only stderr is read.Sebastian Thiel2015-01-201-0/+1
| | | | | | | This simplification should improve performance and remove issues like those in #232. NOTE: Debug code is still contained here
* Dum brute force conversion of all types.Sebastian Thiel2015-01-041-2/+3
| | | | | | However, StringIO really is ByteIO in most cases, and py2.7 should run but doesn't. This should be made work first.
* Removed 'from X import *' whereever possibleSebastian Thiel2015-01-041-2/+18
|
* Bumped version, updated changelog, reduced code smellSebastian Thiel2015-01-041-2/+2
| | | | | There is more work to do though, as many imports are still incorrect. Also, there are still print statements
* Various fixes and improvementsSebastian Thiel2015-01-031-6/+7
| | | | | | | | | * GIT_PYTHON_TRACE now behaves correctly for fetch, and pull (i.e. if as_process is used) * Improved parsing of fetch head information However, there is still a messy bit that tries to bring together fetch progress information with fetch head information. Even though it works now, an alternative implementation should be attempted.
* Applied autopep8Sebastian Thiel2014-11-191-14/+15
| | | | | Commandline was autopep8 -j 8 --max-line-length 120 --in-place --recursive --exclude "*gitdb*,*async*" git/
* pep8 linting (trailing whitespace)Antoine Musso2014-11-161-27/+27
| | | | W291 trailing whitespace
* pep8 linting (whitespace before/after)Antoine Musso2014-11-161-13/+13
| | | | | | | | | | | | | E201 whitespace after '(' E202 whitespace before ')' E203 whitespace before ':' E225 missing whitespace around operator E226 missing whitespace around arithmetic operator E227 missing whitespace around bitwise or shift operator E228 missing whitespace around modulo operator E231 missing whitespace after ',' E241 multiple spaces after ',' E251 unexpected spaces around keyword / parameter equals