Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | refactor(test): make re_lines (et al) look like re.search | Ned Batchelder | 2021-10-28 | 1 | -26/+26 |
| | | | | and also replace some calls with just-plain re.search. | ||||
* | refactor(test): re_lines is more useful if it returns a list | Ned Batchelder | 2021-10-27 | 1 | -3/+5 |
| | |||||
* | test: add a test that self.stdout() works the way it says. | Ned Batchelder | 2021-10-12 | 1 | -0/+9 |
| | |||||
* | style: prefer explicit string concatenation | Ned Batchelder | 2021-10-10 | 1 | -9/+8 |
| | |||||
* | Support TOML v1.0.0 syntax in `pyproject.toml` (#1186) | Thomas Grainger | 2021-07-13 | 1 | -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 warnings | Ned Batchelder | 2021-05-30 | 1 | -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/**.py | Ned Batchelder | 2021-05-02 | 1 | -2/+1 |
| | |||||
* | test: simplify how StopEverything is converted to skipnedbat/remove-unittest-testcase | Ned Batchelder | 2021-03-11 | 1 | -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 classes | Ned Batchelder | 2021-03-11 | 1 | -54/+63 |
| | | | | Now that we don't inherit from TestCase, pytest can parametrize methods. | ||||
* | refactor: use pytest.skip instead of unittest's | Ned Batchelder | 2021-03-11 | 1 | -3/+9 |
| | |||||
* | refactor: no need for specialized assert_starts_with method | Ned Batchelder | 2021-03-06 | 1 | -11/+0 |
| | |||||
* | test: add tests of the failure asserts from check_coverage | Ned Batchelder | 2021-02-22 | 1 | -0/+51 |
| | | | | This brings the coverage of tests/coveragetest.py to 100%. | ||||
* | refactor: remove unittest.assertCountEqual | Ned Batchelder | 2021-02-06 | 1 | -11/+9 |
| | | | | Another step toward removing unittest.TestCase. | ||||
* | refactor: move test mixins to their own file | Ned Batchelder | 2021-02-02 | 1 | -1/+2 |
| | |||||
* | test: adapt to pytest assertion messages | Ned Batchelder | 2021-01-31 | 1 | -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 brokenness | Ned Batchelder | 2021-01-31 | 1 | -8/+9 |
| | | | | | | | unittest2pytest created syntax errors, reported here: https://github.com/pytest-dev/unittest2pytest/issues/51 This commit fixes them back. | ||||
* | refactor: unittest2pytest -w tests | Ned Batchelder | 2021-01-31 | 1 | -35/+33 |
| | | | | One step of moving to pure pytest tests. | ||||
* | Simplify the testing of the toml extra, fixing #1084 | Ned Batchelder | 2021-01-18 | 1 | -9/+10 |
| | |||||
* | Use set literals | Ned Batchelder | 2021-01-03 | 1 | -3/+3 |
| | |||||
* | Move test helpers to tests.helpers | Ned Batchelder | 2019-12-31 | 1 | -0/+28 |
| | |||||
* | Confirm that run_command will show us both stdout and stderr | Ned Batchelder | 2019-12-23 | 1 | -0/+11 |
| | |||||
* | A better way to import optional modules | Ned Batchelder | 2019-11-03 | 1 | -0/+12 |
| | |||||
* | Move arcz_to_arcs to misc so we can use it elsewhere | Ned Batchelder | 2019-06-19 | 1 | -8/+0 |
| | |||||
* | Prefer assertRaisesRegex to assertRaises | Ned Batchelder | 2019-04-21 | 1 | -9/+29 |
| | |||||
* | Control the sys.path that tests see | Ned Batchelder | 2018-11-25 | 1 | -0/+6 |
| | |||||
* | assert_file_count | Ned Batchelder | 2018-08-07 | 1 | -0/+17 |
| | |||||
* | Update NOTICE link to GitHub. | Ned Batchelder | 2018-06-24 | 1 | -1/+1 |
| | |||||
* | Beef up the assert_warnings test helper | Ned Batchelder | 2017-04-06 | 1 | -0/+11 |
| | |||||
* | assert_warnings can now assert that there were no warnings. | Ned Batchelder | 2017-02-20 | 1 | -0/+13 |
| | |||||
* | Move the decorator out of the metaclass, so we can test it | Ned Batchelder | 2017-01-26 | 1 | -2/+23 |
| | |||||
* | Promote re_line and re_lines to real helpers, with tests. | Ned Batchelder | 2017-01-15 | 1 | -7/+42 |
| | |||||
* | Fix two warnings | Ned Batchelder | 2017-01-15 | 1 | -0/+2 |
| | |||||
* | Add a test of CheckUniqueFilenames | Ned Batchelder | 2017-01-15 | 1 | -0/+26 |
| | |||||
* | Use the test method for setting the environment, so we can clean it | Ned Batchelder | 2017-01-15 | 1 | -1/+1 |
| | |||||
* | Remove the test helpers into their own repo | Ned Batchelder | 2016-06-01 | 1 | -111/+0 |
| | |||||
* | Add a delayed_assertions context manager | Ned Batchelder | 2016-01-04 | 1 | -1/+42 |
| | | | | | --HG-- branch : ast-branch | ||||
* | A better way to test for warnings. | Ned Batchelder | 2015-10-03 | 1 | -0/+39 |
| | |||||
* | Pragmas for metacoverage | Ned Batchelder | 2015-08-30 | 1 | -1/+1 |
| | |||||
* | Fix some tests to work in the Appveyor environment | Ned Batchelder | 2015-08-29 | 1 | -6/+14 |
| | |||||
* | Add an explicit test of EnvironmentAwareMixin | Ned Batchelder | 2015-08-29 | 1 | -1/+26 |
| | |||||
* | Add license mention to the top of all files. #313. | Ned Batchelder | 2015-07-24 | 1 | -0/+3 |
| | |||||
* | Fix line too long | Ned Batchelder | 2015-07-20 | 1 | -1/+4 |
| | |||||
* | Pragma away some partial branches in next(gen...) | Ned Batchelder | 2015-07-20 | 1 | -2/+2 |
| | |||||
* | Test arcz_to_arcs directly. | Ned Batchelder | 2015-07-20 | 1 | -0/+5 |
| | |||||
* | Refactor datetime recency testing into a tested test helper | Ned Batchelder | 2015-04-25 | 1 | -0/+22 |
| | |||||
* | Clarify how to use make_file for non-ascii content. | Ned Batchelder | 2015-01-22 | 1 | -1/+4 |
| | |||||
* | For some reason, lowercase 'python' suddenly struck me as odd-looking. Fix ↵ | Ned Batchelder | 2014-12-12 | 1 | -1/+1 |
| | | | | them. | ||||
* | Try out pylint spelling. Kinda noisy, but fixed some stuff. | Ned Batchelder | 2014-11-27 | 1 | -4/+4 |
| | |||||
* | Pragmas for uncovered code | Ned Batchelder | 2014-09-28 | 1 | -2/+2 |
| | |||||
* | Move test helpers into the coverage package so others can use them | Ned Batchelder | 2014-09-15 | 1 | -3/+1 |
| | | | | | --HG-- rename : tests/backunittest.py => coverage/backunittest.py |