summaryrefslogtreecommitdiff
path: root/tests/helpers.py
Commit message (Collapse)AuthorAgeFilesLines
* test: a debug helper to show made-file contentsNed Batchelder2022-01-151-0/+7
|
* refactor(test): make re_lines (et al) look like re.searchNed Batchelder2021-10-281-5/+5
| | | | and also replace some calls with just-plain re.search.
* refactor(test): re_lines is more useful if it returns a listNed Batchelder2021-10-271-4/+10
|
* refactor(test): os_sep and remove_tree helpersNed Batchelder2021-10-241-0/+14
|
* test: subprocess diagnostic for when we need itNed Batchelder2021-10-161-0/+6
|
* style: use the official designation for utf-8Ned Batchelder2021-10-101-1/+1
| | | | | Yes, this is completely unimportant. Don't ask me why I bothered, I'm not really sure.
* Support TOML v1.0.0 syntax in `pyproject.toml` (#1186)Thomas Grainger2021-07-131-1/+1
| | | | | | | | | | | | | | | | | * Support TOML v1.0.0 syntax in `pyproject.toml` fixes #1180 Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> * fix toml meta test * use pytest.mark.parametrize to narrow test failure * Update tests/test_config.py Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
* test: better checking for CoverageWarningsNed Batchelder2021-05-311-2/+2
| | | | | On Python 3.10, we were getting other warnings mixed into the warnings the tests were looking for. This change lets us only look at the CoverageWarnings.
* test: simplify run_command output handlingNed Batchelder2021-05-301-5/+3
| | | | | The type-check is left over from Python 2 compatibility, we don't need it anymore.
* feat: warnings are now real warningsNed Batchelder2021-05-301-0/+15
| | | | | | 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: pyupgrade --py36-plus tests/**.pyNed Batchelder2021-05-021-7/+5
|
* refactor: remove code explicitly choosing between py2 and py3Ned Batchelder2021-05-011-10/+1
|
* fix: don't measure third-party scriptsnedbat/bin-excludeNed Batchelder2021-04-111-1/+1
| | | | | | This finishes the last bit of #905 Also includes tighter logging of the reason for not tracing modules.
* refactor: nice_file can be used as a functionNed Batchelder2021-03-221-0/+6
|
* refactor: make_file can be used as a functionNed Batchelder2021-03-221-0/+42
|
* refactor: pull module cleaning into hereNed Batchelder2021-03-111-26/+1
| | | | We don't need unittest_mixins' module cleaner anymore.
* refactor: our own change_dir context managerNed Batchelder2021-03-111-0/+17
| | | | We don't need to use the one from unittest_mixins.
* refactor: slightly better coverage in coveragetestNed Batchelder2021-02-211-1/+1
|
* refactor: remove unittest.assertCountEqualNed Batchelder2021-02-061-0/+11
| | | | Another step toward removing unittest.TestCase.
* Simplify the testing of the toml extra, fixing #1084Ned Batchelder2021-01-181-0/+19
|
* Move test helpers to tests.helpersNed Batchelder2019-12-311-0/+70
|
* Combine test helpers: remove_filesNed Batchelder2019-12-171-3/+8
|
* Update NOTICE link to GitHub.Ned Batchelder2018-06-241-1/+1
|
* Refactor module cleaning so we can use it outside of testsNed Batchelder2017-02-111-1/+30
|
* Get rid of some unused code pathsNed Batchelder2017-01-201-3/+1
|
* Promote re_line and re_lines to real helpers, with tests.Ned Batchelder2017-01-151-0/+24
|
* Add a test of CheckUniqueFilenamesNed Batchelder2017-01-151-4/+12
|
* Use a 2/3 name for unicodeNed Batchelder2016-11-231-1/+2
|
* Window encodings?Ned Batchelder2015-11-011-2/+3
|
* MergeNed Batchelder2015-10-311-1/+6
|\
| * Account for no encoding at all...Ned Batchelder2015-10-251-3/+5
| |
| * Diagnostic for appveyor, part 2 of NNed Batchelder2015-10-251-1/+2
| |
| * Diagnostic for appveyorNed Batchelder2015-10-251-1/+3
| |
* | Fix the non-ascii filename tests on windows (?)Ned Batchelder2015-10-311-0/+5
|/
* Set the PYTHONIOENCODING environment variable in an OS-neutral way.Ned Batchelder2015-10-251-1/+3
|
* Properly handle filenames with non-ASCII characters. #432Ned Batchelder2015-10-251-1/+6
|
* Fix 'filename' to be 'file name' in English.Ned Batchelder2015-08-201-2/+2
|
* FiddlingNed Batchelder2015-07-261-2/+0
|
* Add license mention to the top of all files. #313.Ned Batchelder2015-07-241-0/+3
|
* Move some code to where it belongsNed Batchelder2015-02-141-0/+26
|
* Re-use CheckUniqueFilenames for test_collector.pyNed Batchelder2015-02-081-0/+25