summaryrefslogtreecommitdiff
path: root/tests/test_files.py
Commit message (Collapse)AuthorAgeFilesLines
* style: use good style for annotated defaults parametersNed Batchelder2023-01-051-5/+5
|
* mypy: Iterator is better than GeneratorNed Batchelder2023-01-051-2/+2
|
* mypy: use __future__ uniformly in checked filesNed Batchelder2023-01-051-0/+2
|
* mypy: test_debug.py test_execfile.py test_filereporter.py test_files.pyNed Batchelder2023-01-041-52/+69
|
* fix: relative_files should keep relative path maps. #1519Ned Batchelder2023-01-021-2/+12
|
* fix: also look into .whl files for sourceNed Batchelder2022-12-231-0/+3
|
* fix: don't forbid plus signs in file names. #1513Ned Batchelder2022-12-231-2/+8
|
* fix: when checking source existence for remapping, zipfiles are okNed Batchelder2022-12-011-1/+30
|
* fix: prevent infinite recursionNed Batchelder2022-12-011-0/+1
| | | | | If using relative file paths, and a file remapping failed, we'd get an infinite recursion.
* test: don't add tests conditionally, skip them insteadNed Batchelder2022-12-011-6/+5
| | | | This keeps the total number of tests the same in all situations.
* feat: file paths are only remapped if the result existsNed Batchelder2022-11-291-3/+8
|
* feat: added support for finding unexecuted namespace packages (#1387)Felix Horvat2022-11-171-1/+18
| | | | | | | | | | | | | | | | | | | * 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>
* fix: path-mapped results shouldn't start with ./Ned Batchelder2022-11-081-0/+7
| | | | Unless the actual result in the config starts with ./
* fix: use glob matching instead of fnmatch. #1407Ned Batchelder2022-10-301-63/+146
| | | | | | | I didn't understand that fnmatch considers the entire string to be a filename, even if it has slashes in it. This led to incorrect matching. Now we use our own implementation of glob matching to get the correct behavior.
* feat: implicitly combine relative pathsNed Batchelder2022-10-151-0/+20
|
* refactor: since we are showing regexes, make them a bit simplerNed Batchelder2022-10-151-4/+4
| | | | | | The old code would always wrap the regex in a needless `(?s:...)` parenthesis. Path aliases are always single regexes, so they don't need that extra wrapping. This makes logged path maps easier to understand.
* fix: */foo matches "foo/x.py", to help with combining relative file names. #991Ned Batchelder2022-10-151-0/+30
|
* refactor(test): use parametrize instead of loopsNed Batchelder2022-10-151-29/+26
|
* refactor: simplify the arguments to a test helperNed Batchelder2022-10-151-17/+14
|
* feat: --debug=pathmap will show details of re-mapping due to [paths] setting.Ned Batchelder2022-09-161-1/+27
|
* docs: keep CHANGES up to dateNed Batchelder2022-08-061-2/+4
|
* fix: paths were wrong when running from root (#1403)Arthur Rio2022-08-061-7/+17
| | | | | | | * Fix paths when running coverage from root * Add simple tests * Use nested pattern for older python versions
* style: parens should indent the same as their opening lineNed Batchelder2022-05-011-2/+2
|
* refactor: specialize exceptionsNed Batchelder2021-11-141-2/+2
| | | | | | 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.
* refactor(test): use the expected name for initializing tests.Ned Batchelder2021-11-071-2/+2
| | | | | | | | | Originally I used setup_test because something went wrong when I used setUp. I wrote https://github.com/pytest-dev/pytest/issues/8424 about it. There they say to use `-p no:nose` to disable nose interpretation. But now I simply went back to setUp, and all seems well? Not sure what changed, but using the expected name is better.
* fix: remapping paths during combining needs to follow relative_files=True. #1147Ned Batchelder2021-11-061-67/+83
|
* fix: give a default value to the name argument for Matchers. #1273Ned Batchelder2021-11-051-6/+6
|
* style: prefer explicit string concatenationNed Batchelder2021-10-101-2/+2
|
* test: canonicalize this bit of debug outputNed Batchelder2021-10-081-1/+1
|
* fix: generate flat file names differentlyNed Batchelder2021-07-151-10/+15
| | | | | | | | Fixes a few unusual issues with reports: - #580: HTML report generation fails on too long path - #584: File collisions in coverage report html - #1167: Remove leading underscore in coverage html
* refactor: move exceptions to their own moduleNed Batchelder2021-05-021-2/+2
|
* refactor: pyupgrade --py36-plus tests/**.pyNed Batchelder2021-05-021-14/+13
|
* debug: label each matcher with its roleNed Batchelder2021-04-111-6/+6
|
* fix: make TreeMatcher right for case-sensitive worldsNed Batchelder2021-04-101-0/+5
|
* test: reduce use of unittestNed Batchelder2021-03-111-4/+4
|
* refactor: convert all skipping to pytest skipsNed Batchelder2021-02-071-5/+1
|
* style: fix long lines and avoid backslashesnedbat/unittest2pytestNed Batchelder2021-01-311-9/+5
|
* refactor: unittest2pytest -w testsNed Batchelder2021-01-311-30/+23
| | | | One step of moving to pure pytest tests.
* fix: combine aliases on windows base dirs (ie: ``X:\``) (fixes: #577)Valentin Lab2021-01-171-0/+14
| | | | Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
* Fix tests for GitHub windows platformNed Batchelder2020-11-281-1/+1
| | | | | | | | | | | | | | The tests were failing because of differences in file paths. It was comparing: C:\Users\runneradmin\AppData\... to: C:\Users\RUNNER~1\AppData\... and failing. These changes normalize the file paths so the comparisons work properly.
* More bitbucket->github urlsNed Batchelder2020-08-181-3/+3
|
* Don't do vars and users in abs_fileNed Batchelder2019-11-281-1/+1
| | | | It meant file names could be incorrectly expanded.
* Fix a test to get case right on WindowsNed Batchelder2019-01-281-1/+1
|
* Make sure that the cache is properly filled. (25x speedup on our system that ↵Stephan Richter2019-01-281-0/+13
| | | | | | has a large sys.path.) It is always a bad idea to reassign the cachekey during the computation.
* Move fiddly fnmatch logic into its own testable functionNed Batchelder2018-09-021-1/+50
|
* Update NOTICE link to GitHub.Ned Batchelder2018-06-241-1/+1
|
* Ensure mapped paths use the separator of the result. #618Ned Batchelder2018-01-221-0/+32
|
* Don't ever create HTML filenames longer than ~200 chars. Fixes #627.Ned Batchelder2018-01-201-3/+21
|
* Skip an obscure case that confuses me on WindowsNed Batchelder2017-11-041-1/+6
|
* Root is acceptable as a combining path (the manylinux tests end up with one ↵Ned Batchelder2017-10-261-1/+4
| | | | of these)