summaryrefslogtreecommitdiff
path: root/tests/test_plugins.py
Commit message (Collapse)AuthorAgeFilesLines
* mypy: test_plugins.pyNed Batchelder2023-01-121-26/+40
|
* mypy: progress on test_plugins.pyNed Batchelder2023-01-121-7/+12
|
* mypy: test_parser.py test_phystokens.py test_process.py test_report.py ↵Ned Batchelder2023-01-071-43/+43
| | | | test_results.py test_setup.py
* test: a sorted_lines helperNed Batchelder2022-12-311-6/+6
|
* refactor: remove mention of Python 2 unicodeNed Batchelder2022-11-061-8/+0
|
* style: parens should indent the same as their opening lineNed Batchelder2022-05-011-5/+5
|
* refactor(test): a context manager to swallow warningsNed Batchelder2022-02-041-3/+4
|
* refactor(test): use math.isclose to check float valuesNed Batchelder2022-01-071-3/+4
|
* refactor: specialize exceptionsNed Batchelder2021-11-141-3/+3
| | | | | | 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.
* style: convert more string formatting to f-stringsNed Batchelder2021-11-111-1/+1
|
* feat: xml and json say what they are doing, and -q quiets everything. #1254nedbat/dashqNed Batchelder2021-10-261-3/+2
|
* test: a part-covered comprehensionNed Batchelder2021-08-091-1/+2
| | | | | The comprehension would only completely finish (->exit) if the assert was going to fail. So we expect it to not finish.
* feat: HTML report now says where the report is. #1195 (#1207)Ned Batchelder2021-08-051-1/+2
|
* test: check the plugin warnings differentlyNed Batchelder2021-07-201-1/+2
| | | | | | | | The old way, extra warnings that we don't care about could creep in. For some reason, disabling PyContracts causes "imp" DeprecationWarnings to appear in the list. Rather than assert there's only one warning, assert there's only one from us.
* feat: warnings are now real warningsNed Batchelder2021-05-301-10/+13
| | | | | | 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-2/+3
|
* 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 unneeded backward.py shimsNed Batchelder2021-05-011-5/+6
| | | | | | | | | | | | | | | Removed were: - StringIO - configparser - string_class - unicode_class - range - zip_longest - get_thread_id - path_types - shlex_quote - reprlib
* test: have pytest collect test classes uniformlyNed Batchelder2021-03-111-1/+1
|
* refactor: convert all skipping to pytest skipsNed Batchelder2021-02-071-8/+2
|
* style: fix long lines and avoid backslashesnedbat/unittest2pytestNed Batchelder2021-01-311-2/+2
|
* style: correct placement of auto-added pytest importsNed Batchelder2021-01-311-1/+2
|
* 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-77/+76
| | | | One step of moving to pure pytest tests.
* Always output TOTAL line.Judson Neer2021-01-061-0/+2
|
* Use set literalsNed Batchelder2021-01-031-3/+3
|
* Python 3.10Ned Batchelder2020-10-101-1/+5
|
* If a plugin is disabled, don't try to record its file tracers. #1011Ned Batchelder2020-09-131-0/+32
|
* Fix a missed exception handling for bad pluginsNed Batchelder2020-09-131-0/+22
|
* Mark tests that don't need a temp dirNed Batchelder2019-11-251-0/+2
|
* CoverageData.lines doesn't sort its returned listNed Batchelder2019-11-091-3/+3
|
* Setting query context has to be done with a separate method callNed Batchelder2019-10-021-48/+31
|
* Python tracer supports dynamic contexts. #846Ned Batchelder2019-09-151-35/+0
|
* No need for format indexes (mostly)Ned Batchelder2019-09-011-1/+1
|
* Update tests to use updated APIs.Stephan Richter2019-06-101-12/+12
|
* Clean up some style in #782, switch_contextNed Batchelder2019-04-281-5/+5
|
* Use pipe symbol to join static and dynamic contextsNed Batchelder2019-04-261-3/+3
|
* Prefer assertRaisesRegex to assertRaisesNed Batchelder2019-04-211-3/+4
|
* Clean up test_plugins.pyNed Batchelder2019-04-211-15/+16
|
* Clean up unused variablesNed Batchelder2019-04-211-10/+7
|
* Fix some formatting, and assert should be expected,actualNed Batchelder2019-04-211-29/+43
|
* Check for skipping tests before super.setUpNed Batchelder2019-04-211-3/+3
|
* Plugin support for dynamic context (#783)Justas Sadzevičius2019-04-201-1/+247
| | | | | | | | | | | | * Introduce a new plugin type: dynamic context labels. * Test dynamic context plugins * Helper method to get full paths to measured files * Get correct filenames on all OS * Improve wording
* Rewrite XML tests to use xml parsing instead of regexesNed Batchelder2019-03-231-8/+20
|
* Asserts should be expected,actualNed Batchelder2018-12-241-2/+2
|
* More tests need temp directoriesNed Batchelder2018-09-021-2/+0
|
* Refactor initializationNed Batchelder2018-08-141-2/+4
| | | | | | | We need the data file suffix when the data file is created, not when write() is called. This required separating how different pieces were initialized. The old way was dumb anyway, since it (for example) created a Collector when reporting.
* Move line_counts out of the data classesNed Batchelder2018-08-101-4/+5
|
* Be stricter about self._dataNed Batchelder2018-07-081-4/+4
|