summaryrefslogtreecommitdiff
path: root/tests/test_api.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Avoid useless or redundant db operations. Faster.Ned Batchelder2019-07-071-15/+0
| | | | | | Moving operations into the "with self._connect" means less opening and closing of the database. Returning early if there is no data to write avoids writing empty contexts.
* New API: Coverage.current() returns the latest started instance.Ned Batchelder2019-06-251-0/+31
|
* Remove a property that has been deprecated for three yearsNed Batchelder2019-06-161-19/+0
|
* Update tests to use updated APIs.Stephan Richter2019-06-101-4/+8
|
* Use pylint 2.xNed Batchelder2019-05-131-3/+3
|
* Clean up some style in #782, switch_contextNed Batchelder2019-04-281-23/+18
|
* Expose switch_context in coverage API (#782)Justas Sadzevičius2019-04-281-0/+111
| | | | | | | | | | | | * Expose switch_context in public API * Test switch_context * Helper method to get full paths to measured files * Get correct file paths on all OS * Note version that introduced this method
* Prefer assertRaisesRegex to assertRaisesNed Batchelder2019-04-211-1/+2
|
* Check for skipping tests before super.setUpNed Batchelder2019-04-211-1/+1
|
* Add a failing test for #708Ned Batchelder2019-04-151-0/+15
|
* Move more PYVERSION to be PYBEHAVIORNed Batchelder2019-03-241-1/+1
|
* Make directories for the data file if needed. #721Ned Batchelder2018-10-211-0/+9
|
* Put this helper in the right placeNed Batchelder2018-10-161-6/+7
|
* SQLite on windows has slightly different messagesNed Batchelder2018-09-021-1/+1
|
* Another pytest-cov test, for --appendNed Batchelder2018-08-241-1/+10
|
* Add a test emulating pytest-covNed Batchelder2018-08-241-2/+29
|
* SQL storage means more tests need temp directoriesNed Batchelder2018-08-241-2/+0
|
* Be flexible, and accept either json-sourced or sql-source error messages in ↵Ned Batchelder2018-08-241-0/+4
| | | | some tests
* Move line_counts out of the data classesNed Batchelder2018-08-101-1/+2
|