summaryrefslogtreecommitdiff
path: root/tests/test_data.py
Commit message (Collapse)AuthorAgeFilesLines
* style: use good style for annotated defaults parametersNed Batchelder2023-01-051-1/+1
|
* mypy: use __future__ uniformly in checked filesNed Batchelder2023-01-051-0/+2
|
* mypy: test_coverage.py, test_data.pyNed Batchelder2023-01-041-84/+97
|
* feat: file paths are only remapped if the result existsNed Batchelder2022-11-291-0/+3
|
* perf: more combine speed-upsNed Batchelder2022-11-201-0/+20
| | | | | | | By avoiding writing metadata that differs but doesn't change the data, we get a higher hitrate on the hash-checking when combining. Use --debug=process to include these details for debugging.
* test: uncomment an assertNed Batchelder2022-10-151-2/+1
|
* test: add a test for #1405Ned Batchelder2022-08-061-0/+27
|
* fix: don't create a data file when just trying to read one. #13286.4Ned Batchelder2022-05-221-0/+7
|
* feat: a new debug option `sqldata` shows all the data being written to the db.Ned Batchelder2022-05-221-5/+12
|
* fix: CoverageData(no_disk=True).update() now works. #1323Ned Batchelder2022-05-211-0/+16
|
* style: parens should indent the same as their opening lineNed Batchelder2022-05-011-1/+1
|
* test: add one sql test to cover an unlikely case in the codeNed Batchelder2022-01-211-5/+13
|
* fix: create the db as needed when accessedNed Batchelder2022-01-201-15/+2
|
* build: make upgradenedbat/upgrade-with-kitsNed Batchelder2021-11-301-1/+1
|
* 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
|