summaryrefslogtreecommitdiff
path: root/tests/test_files.py
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* Use the test-specific chdir methodNed Batchelder2017-02-111-1/+1
|
* Give a test helper a better nameNed Batchelder2017-02-041-4/+4
|
* Enable pytest warnings, and fix/silence a fewNed Batchelder2016-11-261-1/+1
|
* Explicitly test multiple wildcards in path aliasesNed Batchelder2016-10-121-0/+9
|
* Use standard skipTest, which unittest-mixins will override.Ned Batchelder2016-06-121-1/+1
|
* Properly handle filenames with non-ASCII characters. #432Ned Batchelder2015-10-251-1/+1
|
* Use ntpath so Windows file manipulation can be tested the same everywhere.Ned Batchelder2015-08-151-1/+1
|
* Move flat_rootname from FileReporter to a utility function.Ned Batchelder2015-08-091-1/+5
|
* Add license mention to the top of all files. #313.Ned Batchelder2015-07-241-0/+3
|
* More PathAliases testing precisionNed Batchelder2015-06-161-7/+1
|
* Be more specific with PathAliases tests.Ned Batchelder2015-06-161-3/+7
|
* Remove FileLocator from PathAliases. Now it always produces canonicalized paths.Ned Batchelder2015-06-131-15/+23
|
* Change FileLocator from a class to module-level functionsNed Batchelder2015-06-131-16/+16
|
* Tweak up the last mergeNed Batchelder2015-06-071-8/+14
|
* Use the run_in_temp_dir flag.Ionel Cristian Maries2015-06-071-2/+3
| | | | | --HG-- branch : ionelmc/correct-path-normalization-on-windows-th-1433618255921
* Use TestCase here.Ionel Cristian Maries2015-06-071-1/+2
| | | | | --HG-- branch : ionelmc/correct-path-normalization-on-windows-th-1433618255921
* Add a test for the Windows issue of actual_path.Ionel Cristian Maries2015-06-071-1/+8
| | | | | --HG-- branch : ionelmc/correct-path-normalization-on-windows-th-1433618255921
* Move python source understanding into python.pyNed Batchelder2015-01-011-21/+1
|
* Two windows fixes for testsNed Batchelder2014-12-271-0/+1
|
* Zip files always produce bytes, and test that we get them decoded properly.Ned Batchelder2014-12-131-3/+23
|
* Try out pylint spelling. Kinda noisy, but fixed some stuff.Ned Batchelder2014-11-271-1/+1
|
* Cleanups from pull request 42Ned Batchelder2014-11-241-1/+0
|
* ModuleFinder no longer takes a main-module argument.Buck Golemon2014-11-141-33/+6
| | | | | | | --HG-- branch : __main__-support extra : rebase_source : 3f4c29876960153907b65b6e8e818b8228ca4ec0 extra : histedit_source : 6567adaf9c89483b71501fd91e9d3c83ed3daec7%2C2c5c8a7af95b8b26af384b9a65815d077e4313ec