summaryrefslogtreecommitdiff
path: root/tests/test_data.py
Commit message (Collapse)AuthorAgeFilesLines
* refactor: specialize exceptionsNed Batchelder2021-11-141-21/+21
| | | | | | 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: add_lines only needs an iterable of intsNed Batchelder2021-11-131-26/+26
| | | | | The old code expected a dict with int keys, but iterables are simpler, so get rid of a lot of dict.fromkeys() nonsense.
* test: cover the last edge cases in sqldata.pyNed Batchelder2021-10-101-2/+12
|
* fix: raise CoverageException for SQLite connection errorsnedbat/sqldata-edge-testsNed Batchelder2021-10-101-0/+8
|
* refactor: simplify some strange string formattingNed Batchelder2021-10-101-3/+3
|
* test: test two add_file_tracer possibilitiesNed Batchelder2021-10-101-0/+22
|
* refactor: no need for maybe-u prefixes in test regexesNed Batchelder2021-10-101-5/+5
| | | | That was for Python 2, which we don't support anymore.
* test: run test_data.py with debugging onNed Batchelder2021-10-101-96/+110
|
* refactor: remove a mixin class from testsNed Batchelder2021-10-101-67/+64
|
* style: prefer explicit string concatenationNed Batchelder2021-10-101-2/+2
|
* fix: contexts_by_lineno now returns a true dictNed Batchelder2021-10-091-3/+24
|
* test: add a test of touching files in an empty CoverageDataNed Batchelder2021-10-091-0/+6
|
* test: set_query_contexts takes regex, make the examples look like regexNed Batchelder2021-10-091-6/+6
|
* refactor: use sets to collect dataNed Batchelder2021-08-151-34/+32
| | | | | | | Coverage.py predates sets as a built-in data structure, so the file data collection has long been dicts with None as the values. Sets are available to us now (since Python 2.4 in 2004, which coverage.py dropped support for in 2014!), we use sets.
* build: mark a line as not coveredNed Batchelder2021-05-301-1/+1
|
* fix: make data collection operations thread-safeNed Batchelder2021-05-031-1/+6
|
* test: remove a changed test that wasn't supposed to be part of bb73791bNed Batchelder2021-05-031-6/+1
|
* refactor: convert more %-formatting to f-stringsNed Batchelder2021-05-021-1/+6
|
* refactor: move exceptions to their own moduleNed Batchelder2021-05-021-1/+1
|
* refactor: pyupgrade --py36-plus tests/**.pyNed Batchelder2021-05-021-1/+1
|
* 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.
* test: have pytest collect test classes uniformlyNed Batchelder2021-03-111-1/+1
|
* fix: improve an error message. #803Ned Batchelder2021-02-281-2/+4
| | | | Fixes #803.
* refactor: remove unittest.assertCountEqualNed Batchelder2021-02-061-6/+7
| | | | Another step toward removing unittest.TestCase.
* style: fix long lines and avoid backslashesnedbat/unittest2pytestNed Batchelder2021-01-311-7/+9
|
* style: correct placement of auto-added pytest importsNed Batchelder2021-01-311-1/+1
|
* style: singleton comparisons should use isNed Batchelder2021-01-311-1/+1
| | | | | | 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-82/+77
| | | | One step of moving to pure pytest tests.
* More bitbucket->github urlsNed Batchelder2020-08-181-2/+2
|
* '[run] note' is no longer supported.Ned Batchelder2019-11-091-32/+0
|
* Setting query context has to be done with a separate method callNed Batchelder2019-10-021-7/+9
|
* Updating with an empty data is okNed Batchelder2019-09-031-0/+16
| | | | | With no arc or line data, it used to choose lines arbitrarily, which would fail if an empty data was updating an arc data.
* No need for format indexes (mostly)Ned Batchelder2019-09-011-2/+2
|
* Refactor numbits into their own filesNed Batchelder2019-07-311-30/+0
|
* z-compressed dumps and loadsNed Batchelder2019-07-191-0/+28
|
* Bitmaps for line numbers, 10% of the size.Ned Batchelder2019-07-151-0/+30
|
* Remove the JSON data codeNed Batchelder2019-07-101-127/+3
|
* Add some tests for new methods.Stephan Richter2019-06-101-0/+54
|
* A thread stress testNed Batchelder2019-04-091-0/+16
| | | | (cherry picked from commit bc948ac1a5dca4d0a305a265de157d7505e4a4b2)
* Make sure that arcs() and lines() only returns distinct line combination ↵Stephan Richter2019-02-171-0/+16
| | | | values and not one entry for each context.
* A test for 'no such table: meta' as in #716.Ned Batchelder2018-10-161-0/+12
|
* More tests need clear separation of databasesNed Batchelder2018-09-021-13/+13
|
* Tests of the schema checkingNed Batchelder2018-08-261-10/+32
|
* Stop TempDirTest from complaining that no files were madeNed Batchelder2018-08-241-0/+1
|
* PyPy needs to close cursors from pragmasNed Batchelder2018-08-241-0/+2
|
* Cop out for a json/sql difference in data typesNed Batchelder2018-08-241-5/+5
|
* Get file_tracer semantics right, whewNed Batchelder2018-08-241-2/+2
|
* Be flexible, and accept either json-sourced or sql-source error messages in ↵Ned Batchelder2018-08-241-2/+8
| | | | some tests
* Skip some tests for SQL for nowNed Batchelder2018-08-241-2/+4
|
* Start moving suffix to constructorNed Batchelder2018-08-121-14/+15
|