summaryrefslogtreecommitdiff
path: root/tests/test_config.py
Commit message (Collapse)AuthorAgeFilesLines
* docs: final paperwork for exclude_also #1557Ned Batchelder2023-02-221-2/+3
|
* feat: add extend_exclude optionAlpha Chen2023-02-221-0/+9
|
* fix: Path objects are ok for data_file and config_file. #1552Ned Batchelder2023-02-121-3/+5
|
* mypy: use __future__ uniformly in checked filesNed Batchelder2023-01-051-0/+2
|
* refactor: a better way to have maybe-importable third-party modulesNed Batchelder2023-01-031-6/+5
|
* mypy: test_config.py, test_context.pyNed Batchelder2023-01-031-54/+55
|
* mypy: inorout.py, disposition.py, and part of control.pyNed Batchelder2022-12-301-2/+2
|
* mypy: check tomlconfig.pyNed Batchelder2022-12-291-0/+1
|
* fix: [tools.coverage] is valid for settings in a toml file. #1516Ned Batchelder2022-12-271-0/+13
|
* test: run mypy on config.pyNed Batchelder2022-12-271-6/+7
|
* feat: added support for finding unexecuted namespace packages (#1387)Felix Horvat2022-11-171-0/+3
| | | | | | | | | | | | | | | | | | | * add support for namespace packages * fixed typo * update documentation * fixed lint issues * changed versionadded * convert to config setting * removed pure formatting changes * code review changes Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* feat: complete removal of `[run] note`Ned Batchelder2022-11-111-11/+0
|
* test: correct some config tests, and fully cover tomlconfig.pyNed Batchelder2022-10-281-4/+21
|
* fix: in toml config, only apply environment substitution to coverage ↵Ned Batchelder2022-10-281-7/+12
| | | | settings. #1481
* test: simulate the failure from issue #1481Ned Batchelder2022-10-281-0/+4
|
* Use tomllib on Python 3.11 (#1359)Shantanu2022-05-151-4/+7
| | | Co-authored-by: hauntsaninja <>
* refactor(test): use math.isclose to check float valuesNed Batchelder2022-01-071-2/+3
|
* refactor: specialize exceptionsNed Batchelder2021-11-141-18/+18
| | | | | | CoverageException is fine as a base class, but not good to use for raising (and catching sometimes). Introduce specialized exceptions that allow third-party tools to integrate better.
* test(refactor): convert looping tests to parametrizeNed Batchelder2021-11-111-32/+25
|
* style: convert more string formatting to f-stringsNed Batchelder2021-11-111-2/+2
|
* refactor: no need for maybe-u prefixes in test regexesNed Batchelder2021-10-101-3/+3
| | | | That was for Python 2, which we don't support anymore.
* style: prefer explicit string concatenationNed Batchelder2021-10-101-8/+8
|
* feat: unrecognized options are now a warning rather than error. #1035 (#1206)Ned Batchelder2021-08-051-6/+6
| | | | Because they are warnings issued while parsing the configuration file, it's not possible to suppress them with the coverage configuration.
* style: fix typos discovered by codespell (#1197)Christian Clauss2021-08-011-1/+1
| | | | | | | | | | | python3 -m pip install codespell codespell --ignore-words-list="ba,cant,datas,hart,linke,ned,nin,overthere,upto" --skip="*.js" * Fix typos discovered by codespell * datas * intgers ==> integers
* Support TOML v1.0.0 syntax in `pyproject.toml` (#1186)Thomas Grainger2021-07-131-28/+25
| | | | | | | | | | | | | | | | | * Support TOML v1.0.0 syntax in `pyproject.toml` fixes #1180 Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> * fix toml meta test * use pytest.mark.parametrize to narrow test failure * Update tests/test_config.py Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
* refactor: move exceptions to their own moduleNed Batchelder2021-05-021-1/+1
|
* refactor: pyupgrade --py36-plus tests/**.pyNed Batchelder2021-05-021-7/+6
|
* test: remove the .egg testNed Batchelder2021-04-141-2/+2
| | | | | | People don't use .egg much anymore, distutils is showing deprecation warnings, and coverage.py only deals with them the same way it deals with .zip files, so let's just rely on a .zip test to cover that.
* test: add a test of missing sections and optionsNed Batchelder2021-02-251-0/+12
|
* refactor: put a test in a more appropriate classNed Batchelder2021-02-251-11/+11
|
* style: fix long lines and avoid backslashesnedbat/unittest2pytestNed Batchelder2021-01-311-6/+3
|
* style: correct placement of auto-added pytest importsNed Batchelder2021-01-311-1/+1
|
* style: singleton comparisons should use isNed Batchelder2021-01-311-8/+8
| | | | | | I guess the original line was wrong, but it would have been nice for unittest2pytest to fix it for me: https://github.com/pytest-dev/unittest2pytest/issues/52
* refactor: unittest2pytest -w testsNed Batchelder2021-01-311-133/+128
| | | | One step of moving to pure pytest tests.
* Simplify the testing of the toml extra, fixing #1084Ned Batchelder2021-01-181-5/+5
|
* Create Way to force package even if filepath exists (#1026)Thomas Grainger2020-09-121-0/+2
| | | Fixes: #268
* Read the config file contents as bytes, it's just for debugging anyway. #990Ned Batchelder2020-05-231-4/+10
|
* Beef up the test for get_option(paths)Ned Batchelder2020-04-111-1/+14
|
* Allow plugins to alter the paths configBernat Gabor2020-04-031-0/+12
| | | | Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* Don't do vars and users in abs_fileNed Batchelder2019-11-281-0/+6
| | | | It meant file names could be incorrectly expanded.
* '[run] note' is no longer supported.Ned Batchelder2019-11-091-0/+11
|
* Refactor the toml logicNed Batchelder2019-11-041-6/+21
| | | | | | | | | - Section names can be dotted. - We only ever read one file, so we don't need to loop over files. - Error messages should show the actual section names where problems happened.
* Give warnings about not being able to parse TOML files if toml isn't installedNed Batchelder2019-11-031-0/+34
|
* Expand environment variables in any part of a TOML configNed Batchelder2019-11-031-1/+2
|
* TOML support for pyproject.toml and other config filesFrazer McLean2019-11-031-0/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed and rebased from https://github.com/nedbat/coveragepy/pull/699 Missing getfloat TOMLConfigParser -> TomlConfigParser fix getfloat for int Move TomlConfigParser Add name to contributors Import toml in backward.py fix indentation Don't ignore TomlDecodeError Raise if TomlConfigParser is used without toml installed Add tests for TOML config Fix test on Python 2 Mention toml support in documentation.
* Optionally skip empty files in reportsreybog902019-11-011-0/+2
|
* Create a JSON reportMatt Bachmann2019-08-311-0/+6
|
* Prefer assertRaisesRegex to assertRaisesNed Batchelder2019-04-211-6/+6
|
* Update NOTICE link to GitHub.Ned Batchelder2018-06-241-1/+1
|
* COVERAGE_RCFILE can specify the config file location. #650Ned Batchelder2018-04-191-0/+15
|