summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* style: fix long lines and avoid backslashesnedbat/unittest2pytestNed Batchelder2021-01-3120-167/+179
|
* style: correct placement of auto-added pytest importsNed Batchelder2021-01-3114-14/+21
|
* style: singleton comparisons should use isNed Batchelder2021-01-317-16/+16
| | | | | | 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: mark an internal methodNed Batchelder2021-01-311-4/+4
|
* test: adapt to pytest assertion messagesNed Batchelder2021-01-312-10/+10
| | | | | | | | Bare "assert" statements don't produce the same assertion message as self.assertEqual did: they don't include the two values compared. For some of our own asserts, add back the detailed message. For some checks of asserts, it's fine that the values are missing because the longer messsage includes the information.
* test: fix unittest2pytest brokennessNed Batchelder2021-01-312-17/+21
| | | | | | | unittest2pytest created syntax errors, reported here: https://github.com/pytest-dev/unittest2pytest/issues/51 This commit fixes them back.
* refactor: unittest2pytest -w testsNed Batchelder2021-01-3131-1294/+1165
| | | | One step of moving to pure pytest tests.
* Add combine --keep (#1110)Éric Larivière2021-01-303-6/+28
| | | | | | | | | | | * Add combine --keep Related to https://github.com/nedbat/coveragepy/issues/1108 * Fix unit tests * Fix line too long * Fix line too long
* Simplify the testing of the toml extra, fixing #1084Ned Batchelder2021-01-183-14/+34
|
* fix: combine aliases on windows base dirs (ie: ``X:\``) (fixes: #577)Valentin Lab2021-01-171-0/+14
| | | | Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
* skip_covered and skip_empty for HTML. #1090Ned Batchelder2021-01-101-19/+33
|
* Use the modern way to load modules by file name.Ned Batchelder2021-01-101-4/+15
| | | | | | | Python 3.10 finally got super-noisy about load_module, which has been deprecated since 3.4! https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.load_module
* Fix a test to be usable with PEP626Ned Batchelder2021-01-101-33/+35
| | | | | | | In the old code, the return and raise were unreachable, so Python 3.10 compiled them away. This meant the return and raise messages weren't in the missing arc fragments. The new code has a path to the return and raise.
* Need new gold files for pep626 partial branch HTML reportNed Batchelder2021-01-103-16/+210
|
* Update the support files for HTML gold filesNed Batchelder2021-01-102-54/+226
|
* A better test for 'if not __debug__'Ned Batchelder2021-01-102-13/+14
|
* PEP 626: Docstring-only functions changed againNed Batchelder2021-01-101-1/+2
|
* PEP 626: constant tests are kept as no-opsNed Batchelder2021-01-103-33/+129
| | | | | The conditionals are now getting unwieldy, perhaps we can simplify them in the future?
* Clean up the platform constants in env.pyNed Batchelder2021-01-101-1/+1
|
* In 3.10, modules always have firstlineno==1Ned Batchelder2021-01-102-1/+8
|
* Python 3.10 doesn't compile statments after unconditional jumps.Ned Batchelder2021-01-102-89/+116
| | | | This includes break/continue/return/raise.
* 2506 is fixed?Ned Batchelder2021-01-101-4/+7
|
* Tests of statements after raise and returnNed Batchelder2021-01-101-0/+22
|
* Always output TOTAL line.Judson Neer2021-01-065-33/+70
|
* Use set literalsNed Batchelder2021-01-036-17/+17
|
* This test doesn't work on Mac either.Ned Batchelder2021-01-021-1/+1
|
* Updated gold html filesNed Batchelder2020-12-0538-79/+117
|
* This test is picky about platformsNed Batchelder2020-11-281-1/+1
|
* Fix tests for GitHub windows platformNed Batchelder2020-11-284-9/+11
| | | | | | | | | | | | | | 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.
* PyPy 3.7 doesn't act exactly like CPython 3.7Ned Batchelder2020-10-102-2/+2
|
* 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
|
* ambigious -> ambiguousNed Batchelder2020-09-125-10/+10
|
* Docs and cleanup for source_pkgsNed Batchelder2020-09-124-7/+6
|
* Create Way to force package even if filepath exists (#1026)Thomas Grainger2020-09-125-0/+24
| | | Fixes: #268
* replace confusing comment with assertion (#1028)Thomas Grainger2020-09-121-3/+12
|
* Explain a mysteryNed Batchelder2020-09-021-0/+4
|
* More bitbucket->github urlsNed Batchelder2020-08-1813-54/+53
|
* Displaying timezone information in HTML report (#960)Xie Yanbo2020-07-2339-38/+44
| | | | | | | | * Displaying timezone information in HTML report * A helpber to format datetime with local timezone * No backward compatibility with older python versions
* CmdLineStdoutTest::test_cmd_help: test for at least 20 lines (#1013)latricewilgus2020-07-191-1/+1
| | | | | | | | | The number of lines in the help output of a command depends on the terminal size. The smaller the more line breaks. The minimum number of lines for the current help message is 23. Currently we are checking for at least 30 lines, yielding to failures on large terminals. Reduce the number (currently 30) to 20 to have some leeway for the future.
* Fix dark mode for context listing. #1009Ned Batchelder2020-07-091-2/+12
|
* A known failure has been fixedNed Batchelder2020-07-051-1/+1
|
* Back to monospaced for the index pageNed Batchelder2020-07-051-1/+1
|
* Switch to python-based sass compilerNed Batchelder2020-07-051-1/+111
|
* Report descending sort option (#1005)Jerin Peter George2020-07-031-0/+6
| | | | | | | | | | | | | | | * added descending sort option in coverage report * commandline option for report sort added * Fix tests for pull #1005 * conditional statements improved * sort option help updated with choices * commandline test for sort added Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* Fix broken sorting tests. Good catch, Jerin Peter GeorgeNed Batchelder2020-07-031-10/+11
|
* --skip-empty now applies to the XML report also. #976nedbat/bug976Ned Batchelder2020-06-302-1/+8
|
* Simplify testing of --no-skip-covered, and add docsNed Batchelder2020-06-292-30/+10
|
* More HTML tweaksNed Batchelder2020-06-291-4/+3
| | | | | | | | - Let the left and right cells have padding so the hover bar looks good. - Adjust the table left margin so the contents still line up with the header. - Fix the up/down arrows to be correct for the sorting order they indicate.