summaryrefslogtreecommitdiff
path: root/tests/test_api.py
Commit message (Collapse)AuthorAgeFilesLines
* test: exclude one last line in test_api.pyNed Batchelder2021-08-091-1/+1
|
* feat: `coverage combine` now prints messages naming the files being ↵Ned Batchelder2021-08-051-0/+4
| | | | combined. #1105 (#1208)
* feat: warnings are now real warningsNed Batchelder2021-05-301-36/+40
| | | | | | This makes coverage warnings visible when running test suites under pytest. But it also means some uninteresting warnings would show up in our own test suite, so we had to catch or suppress those.
* refactor: move exceptions to their own moduleNed Batchelder2021-05-021-1/+2
|
* refactor: pyupgrade --py36-plus tests/**.pyNed Batchelder2021-05-021-2/+2
|
* refactor: move the remaining backward.py code, no more backward.pyNed Batchelder2021-05-011-2/+1
|
* refactor: remove some unneeded behavior conditionalsNed Batchelder2021-05-011-3/+0
|
* refactor: remove yet more unneeded backward.py shimsNed Batchelder2021-05-011-2/+2
| | | | | | | | Gone are: - PYC_MAGIC_NUMBER - code_object - SimpleNamespace
* refactor: remove unneeded backward.py shimsNed Batchelder2021-05-011-3/+4
| | | | | | | | | | | | | | | Removed were: - StringIO - configparser - string_class - unicode_class - range - zip_longest - get_thread_id - path_types - shlex_quote - reprlib
* refactor: nice_file can be used as a functionNed Batchelder2021-03-221-5/+5
|
* refactor: remove unused test class settingNed Batchelder2021-03-111-4/+0
| | | | | | | | | unittest_mixins would check that files got created if a test made a temporary directory, so that we could trim down making temp dirs needlessly. But we don't use unittest_mixins any more, so this setting does nothing. Remove it.
* refactor: our own change_dir context managerNed Batchelder2021-03-111-2/+1
| | | | We don't need to use the one from unittest_mixins.
* test: simplify how StopEverything is converted to skipnedbat/remove-unittest-testcaseNed Batchelder2021-03-111-2/+2
| | | | | | The auto-decorating metaclass was interfering with parameterized methods on Python 2.7. But we don't need it anymore anyway, since pytest will let us hook to deal with the exception in a simpler way.
* test: reduce use of unittestNed Batchelder2021-03-111-4/+4
|
* test: oops, accidentally always skipped this testNed Batchelder2021-02-241-1/+1
|
* refactor: convert all skipping to pytest skipsNed Batchelder2021-02-071-5/+3
|
* refactor: remove unittest.assertCountEqualNed Batchelder2021-02-061-1/+2
| | | | Another step toward removing unittest.TestCase.
* refactor: remove reliance on unittest_mixins.StdStreamCapturingMixinNed Batchelder2021-02-021-6/+2
| | | | This is another step toward removing unittest.TestCase as a base class.
* refactor: move test mixins to their own fileNed Batchelder2021-02-021-2/+2
|
* style: fix long lines and avoid backslashesnedbat/unittest2pytestNed Batchelder2021-01-311-8/+6
|
* style: correct placement of auto-added pytest importsNed Batchelder2021-01-311-1/+1
|
* style: singleton comparisons should use isNed Batchelder2021-01-311-3/+3
| | | | | | 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-105/+96
| | | | One step of moving to pure pytest tests.
* Add combine --keep (#1110)Éric Larivière2021-01-301-1/+1
| | | | | | | | | | | * Add combine --keep Related to https://github.com/nedbat/coveragepy/issues/1108 * Fix unit tests * Fix line too long * Fix line too long
* Always output TOTAL line.Judson Neer2021-01-061-2/+10
|
* Fix tests for GitHub windows platformNed Batchelder2020-11-281-4/+4
| | | | | | | | | | | | | | 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.
* ambigious -> ambiguousNed Batchelder2020-09-121-9/+9
|
* Docs and cleanup for source_pkgsNed Batchelder2020-09-121-7/+2
|
* Create Way to force package even if filepath exists (#1026)Thomas Grainger2020-09-121-0/+22
| | | Fixes: #268
* replace confusing comment with assertion (#1028)Thomas Grainger2020-09-121-3/+12
|
* More bitbucket->github urlsNed Batchelder2020-08-181-3/+3
|
* A test replicating #916Ned Batchelder2020-01-071-2/+11
|
* Ensure file touching happens if nothing was measured. #884Ned Batchelder2020-01-041-0/+15
|
* Fix --debug=sys. #907Ned Batchelder2019-12-281-0/+8
|
* Warn if two things change the dynamic context. #901Ned Batchelder2019-12-271-0/+13
|
* Warnings can be marked to only display once.Ned Batchelder2019-12-271-3/+13
|
* A way to artificially crash coverage, for testing.Ned Batchelder2019-12-231-0/+15
|
* Detect when a 4.x data file is being read. #886Ned Batchelder2019-12-221-5/+12
|
* Don't need to check for JSON-era bad-data messages any moreNed Batchelder2019-12-221-5/+0
|
* Coverage(data_file=None) means no data file at all. #871Ned Batchelder2019-12-021-1/+26
|
* The [paths] setting is ordered. #649Ned Batchelder2019-12-011-0/+43
|
* Experimental: relative_files to support relative file names.Ned Batchelder2019-12-011-0/+91
|
* These tests needed temp directoriesNed Batchelder2019-11-261-1/+3
|
* Mark tests that don't need a temp dirNed Batchelder2019-11-251-5/+9
|
* CoverageData.lines doesn't sort its returned listNed Batchelder2019-11-091-4/+4
|
* A little more metacovNed Batchelder2019-11-051-2/+2
|
* Exclude some nested coverage lines from coverageNed Batchelder2019-11-041-28/+32
|
* Optionally skip empty files in reportsreybog902019-11-011-1/+2
|
* Setting query context has to be done with a separate method callNed Batchelder2019-10-021-8/+8
|
* Reporting methods shouldn't permanently change the configurationNed Batchelder2019-09-011-0/+11
|