summaryrefslogtreecommitdiff
path: root/git/test/test_config.py
Commit message (Collapse)AuthorAgeFilesLines
* Use items and items_all correctlyA. Jesse Jiryu Davis2019-01-211-1/+11
| | | | #717
* Support multiple git config values per optionA. Jesse Jiryu Davis2019-01-201-0/+97
| | | | Solves #717
* BF: wrap map into list, since iterator is not well digested by GitConfigParserYaroslav Halchenko2017-11-271-1/+1
|
* BF: process included files before the restYaroslav Halchenko2017-11-271-0/+16
|
* Spelling fixesVille Skyttä2017-03-091-1/+1
|
* src: import os.path as ospKostis Anagnostopoulos2016-10-161-7/+6
|
* src, config_tc: replace deprecated `failUnlessRaises`Kostis Anagnostopoulos2016-10-031-13/+25
|
* repo-TCs, #519: FIX config resource leaksKostis Anagnostopoulos2016-10-011-2/+1
| | | | | | + Modify lock/read-config-file code to ensure files closed. + Use `with GitConfigarser()` more systematically in TCs. + Clear any locks left hanging from prev Tcs. + Util: mark lock-files as SHORT_LIVED; save some SSDs...
* ci: restore ci log-level to normal, coverage on Win-AppveyorKostis Anagnostopoulos2016-10-011-5/+3
| | | | + Extract util-method to delete lock-files, also on Windows (will be needed by TCs).
* cfg_TCs, #519: FIX config resource leaksKostis Anagnostopoulos2016-10-011-78/+93
| | | | | + Modify lock/read-config-file code to ansure files closed + Use `with GitConfigarser()` more systematically in TCs. + Clear any locks left hanging from pev Tcs
* Win, #519: FIX with_rw_directory() to remove read-only dirsKostis Anagnostopoulos2016-09-281-1/+1
| | | | | + Stop using gitdb's respective helper. + Fix files chmod(555) which CANNOT DELETE on Windows (but do on Linux).
* config parsers as context mangers can now be reentered for locksRaphael Boidol2016-03-061-0/+17
|
* enable config parsers to be used as context managersRaphael Boidol2016-02-201-39/+31
| | | | if used as context managers, the parsers will automatically release their file locks.
* fix(config): ignore empty values in config fileSebastian Thiel2015-09-061-0/+7
| | | | | | | | | | | Similar to git, we now ignore options which have no value. Previously it would not handle it consistently, and throw a parsing error the first time the cache was built. Afterwards, it was fully usable though. Now we specifically check for the case of no-value options instead. Closes #349
* fix(config): selective cfg write;fix cfg parserSebastian Thiel2015-04-221-6/+9
| | | | | | | | | | | * config parser now handles quoted values correctly. This doesn't hamper multi-line support. * added regression test to travis to assure we will be warned if we rewrite and break the user's .gitconfig file * only rewrite configuration files if we actually called a mutating method on the writer. Previously it would always rewrite it. Fixes #285
* Fixed configuration file test - release call was missing.Sebastian Thiel2015-01-191-0/+1
| | | | Once again, __del__ is not being called as usual anymore in python 3 ... .
* Implemented Submodule.rename()Sebastian Thiel2015-01-191-0/+13
| | | | | | A test verifies it's truly working. Related to #238
* GitConfigParser now respects and merges 'include' sectionsSebastian Thiel2015-01-141-1/+67
| | | | | | | | | | | | | We implement it as described in this article: http://stackoverflow.com/questions/1557183/is-it-possible-to-include-a-file-in-your-gitconfig Thus we handle * cycles * relative and absolute include paths * write-backs in case of writable GitConfigParser instances Fixes #201
* rewrote test-string to have a chance to make flake8 happy.Sebastian Thiel2015-01-101-10/+9
| | | | | That way, flake won't have to completely ignore issues it might have in other portions of this file.
* Implemented multi-line parsing of git-config to the point where a sepcific ↵Sebastian Thiel2015-01-101-1/+21
| | | | | | | | | | test-file is working. This brings us much closer to what git can do, and should at least prevent errors while reading configuration files (which would break a lot of features, like handling of remotes since these rely reading configuration files). Fixes #112
* Make flake8 happySebastian Thiel2015-01-061-0/+1
|
* Intermediate commit: test_config and test_actor worksSebastian Thiel2015-01-051-6/+7
| | | | | Kind of tackling the tasks step by step, picking low-hanging fruit first, or the ones that everyone depends on
* Fixed io types to make tests work on PY2 once again.py3Sebastian Thiel2015-01-051-2/+2
| | | | Now it's about going through PY3 issues
* Dum brute force conversion of all types.Sebastian Thiel2015-01-041-1/+2
| | | | | | However, StringIO really is ByteIO in most cases, and py2.7 should run but doesn't. This should be made work first.
* Replaced ordered dict with standard version; used logging moduleSebastian Thiel2015-01-041-1/+0
| | | | All performance tests still print to stderr, but do so in a py3 compatible way
* Removed 'from X import *' whereever possibleSebastian Thiel2015-01-041-2/+7
|
* 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
* Applied autopep8Sebastian Thiel2014-11-191-1/+1
| | | | | Commandline was autopep8 -j 8 --max-line-length 120 --in-place --recursive --exclude "*gitdb*,*async*" git/
* pep8 linting (trailing whitespace)Antoine Musso2014-11-161-1/+1
| | | | W291 trailing whitespace
* pep8 linting (whitespace before/after)Antoine Musso2014-11-161-4/+4
| | | | | | | | | | | | | 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
* pep8 linting (blank lines expectations)Antoine Musso2014-11-161-0/+1
| | | | | | E301 expected 1 blank line, found 0 E302 expected 2 blank lines, found 1 E303 too many blank lines (n)
* pep8 linting (whitespaces)Antoine Musso2014-11-161-16/+14
| | | | | | | | | | | W191 indentation contains tabs E221 multiple spaces before operator E222 multiple spaces after operator E225 missing whitespace around operator E271 multiple spaces after keyword W292 no newline at end of file W293 blank line contains whitespace W391 blank line at end of file
* Greatly improved robustness of config parser - it can now take pretty much ↵Sebastian Thiel2011-06-071-2/+4
| | | | everything. Includes an updated config file which includes all the new additions
* Moved everything into the git subdirectory - some tests still need to be ↵Sebastian Thiel2010-11-251-0/+102
adjusted