summaryrefslogtreecommitdiff
path: root/tests/test_testing.py
Commit message (Collapse)AuthorAgeFilesLines
* mypy: test_testing.py test_version.pyNed Batchelder2023-01-071-36/+46
|
* refactor: a better way to have maybe-importable third-party modulesNed Batchelder2023-01-031-12/+1
|
* Use tomllib on Python 3.11 (#1359)Shantanu2022-05-151-4/+4
| | | Co-authored-by: hauntsaninja <>
* refactor(test): make re_lines (et al) look like re.searchNed Batchelder2021-10-281-26/+26
| | | | 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-3/+5
|
* test: add a test that self.stdout() works the way it says.Ned Batchelder2021-10-121-0/+9
|
* style: prefer explicit string concatenationNed Batchelder2021-10-101-9/+8
|
* Support TOML v1.0.0 syntax in `pyproject.toml` (#1186)Thomas Grainger2021-07-131-4/+4
| | | | | | | | | | | | | | | | | * 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>
* feat: warnings are now real warningsNed Batchelder2021-05-301-1/+57
| | | | | | 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-2/+1
|
* test: simplify how StopEverything is converted to skipnedbat/remove-unittest-testcaseNed Batchelder2021-03-111-29/+0
| | | | | | The auto-decorating metaclass was interfering with parameterized methods on Python 2.7. But we don't need it anymore anyway, since pytest will let us hook to deal with the exception in a simpler way.
* refactor: move tests into classesNed Batchelder2021-03-111-54/+63
| | | | Now that we don't inherit from TestCase, pytest can parametrize methods.
* refactor: use pytest.skip instead of unittest'sNed Batchelder2021-03-111-3/+9
|
* refactor: no need for specialized assert_starts_with methodNed Batchelder2021-03-061-11/+0
|
* test: add tests of the failure asserts from check_coverageNed Batchelder2021-02-221-0/+51
| | | | This brings the coverage of tests/coveragetest.py to 100%.
* refactor: remove unittest.assertCountEqualNed Batchelder2021-02-061-11/+9
| | | | Another step toward removing unittest.TestCase.
* refactor: move test mixins to their own fileNed Batchelder2021-02-021-1/+2
|
* test: adapt to pytest assertion messagesNed Batchelder2021-01-311-6/+6
| | | | | | | | 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-311-8/+9
| | | | | | | 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-311-35/+33
| | | | One step of moving to pure pytest tests.
* Simplify the testing of the toml extra, fixing #1084Ned Batchelder2021-01-181-9/+10
|
* Use set literalsNed Batchelder2021-01-031-3/+3
|
* Move test helpers to tests.helpersNed Batchelder2019-12-311-0/+28
|
* Confirm that run_command will show us both stdout and stderrNed Batchelder2019-12-231-0/+11
|
* A better way to import optional modulesNed Batchelder2019-11-031-0/+12
|
* Move arcz_to_arcs to misc so we can use it elsewhereNed Batchelder2019-06-191-8/+0
|
* Prefer assertRaisesRegex to assertRaisesNed Batchelder2019-04-211-9/+29
|
* Control the sys.path that tests seeNed Batchelder2018-11-251-0/+6
|
* assert_file_countNed Batchelder2018-08-071-0/+17
|
* Update NOTICE link to GitHub.Ned Batchelder2018-06-241-1/+1
|
* Beef up the assert_warnings test helperNed Batchelder2017-04-061-0/+11
|
* assert_warnings can now assert that there were no warnings.Ned Batchelder2017-02-201-0/+13
|
* Move the decorator out of the metaclass, so we can test itNed Batchelder2017-01-261-2/+23
|
* Promote re_line and re_lines to real helpers, with tests.Ned Batchelder2017-01-151-7/+42
|
* Fix two warningsNed Batchelder2017-01-151-0/+2
|
* Add a test of CheckUniqueFilenamesNed Batchelder2017-01-151-0/+26
|
* Use the test method for setting the environment, so we can clean itNed Batchelder2017-01-151-1/+1
|
* Remove the test helpers into their own repoNed Batchelder2016-06-011-111/+0
|
* Add a delayed_assertions context managerNed Batchelder2016-01-041-1/+42
| | | | | --HG-- branch : ast-branch
* A better way to test for warnings.Ned Batchelder2015-10-031-0/+39
|
* Pragmas for metacoverageNed Batchelder2015-08-301-1/+1
|
* Fix some tests to work in the Appveyor environmentNed Batchelder2015-08-291-6/+14
|
* Add an explicit test of EnvironmentAwareMixinNed Batchelder2015-08-291-1/+26
|
* Add license mention to the top of all files. #313.Ned Batchelder2015-07-241-0/+3
|
* Fix line too longNed Batchelder2015-07-201-1/+4
|
* Pragma away some partial branches in next(gen...)Ned Batchelder2015-07-201-2/+2
|
* Test arcz_to_arcs directly.Ned Batchelder2015-07-201-0/+5
|
* Refactor datetime recency testing into a tested test helperNed Batchelder2015-04-251-0/+22
|
* Clarify how to use make_file for non-ascii content.Ned Batchelder2015-01-221-1/+4
|
* For some reason, lowercase 'python' suddenly struck me as odd-looking. Fix ↵Ned Batchelder2014-12-121-1/+1
| | | | them.