summaryrefslogtreecommitdiff
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix typosKian-Meng Ang2022-02-061-1/+1
|
* Fix tests (#183)Aliaksei Urbanski2019-06-111-3/+3
| | | | | | The main goal of this commit is to fix the test_encoding_from_filelike test for Python 3.6+. As well, it fixes a couple of warnings.
* Upgrade Python syntax with pyupgrade https://github.com/asottile/pyupgradeHugo2018-10-132-2/+2
|
* quoting: make helper an actual function, and use repr in exceptionsjhermann2017-02-281-2/+1
|
* Roundtrip configs with triple quotes and newlinesMartin Packman2017-02-281-1/+18
| | | | | | | | | | | Reported long ago as bzr bug lp:710410 but the fix never made it to the 5.x configobj series. It is possible to create a config which configobj cannot read back, due to reversed logic in triple quote handling. Adapted the bzr unit test by bialix and fixed the behaviour.
* Move some dottedQuadToNum doctests to pytestMartin Packman2017-02-281-0/+23
| | | | | | | | | | Currently the dottedQuadToNum doctest can fail on Python 2 depending on sys.maxint of the platform. Really doctests are not suitable for full coverage, so the boundary case and spacing behaviour checking is better in the pytest framework with doctests reserved for showing what the fuction actually does.
* more compact testjhermann2017-02-281-21/+9
|
* Always return unicode when encoding is given (closes #18)Martin Packman2017-02-281-0/+24
| | | | | | | | | | As reported in github issue #18 when a file-like object is given and the encoding param is passed configobj fails to decode the data on Python 2. This is a regression from the 4.7 releases. Fix is simply to check first for binary types in _decode() helper as six.string_types includes the bytes str type on Python 2.
* test for rewriting with alternate comment markersjhermann2016-08-291-0/+9
|
* added 'decoupled' kwparam to merge() (closes #115)jhermann2016-07-271-0/+12
|
* fixed doctests (ref #73)jhermann2016-07-271-6/+8
|
* more detailed multi-error reports (closes #73)jhermann2016-07-271-1/+32
|
* do not quote git-style section titles (closes #74)jhermann2016-07-271-2/+6
|
* tests: non-empty string checksjhermann2016-07-271-2/+18
|
* preserve spacing before comments and at line ends (closes #108)jhermann2016-07-272-7/+16
|
* tests: use mark.parametrize instead of for loopjhermann2016-07-271-8/+9
|
* tests for force_list and mixed_listjhermann2016-07-271-0/+32
|
* exit status depends on doctest result againjhermann2016-07-261-1/+1
|
* ability to set alternative line comment markers (more INI compatibility, ↵jhermann2016-07-261-0/+18
| | | | closes #79)
* fix 'validate' imports for new package structurejhermann2016-07-264-4/+4
|
* make doctests run in py2.6jhermann2016-07-261-2/+3
|
* made 'invoke test doctest check' work, and fixed existing test/lint failuresjhermann2016-07-268-0/+2574