summaryrefslogtreecommitdiff
path: root/tests/mixins.py
Commit message (Collapse)AuthorAgeFilesLines
* mypy: install pytest alongside mypy to get its typesNed Batchelder2023-01-101-4/+4
|
* style: use good style for annotated defaults parametersNed Batchelder2023-01-051-3/+3
|
* mypy: use __future__ uniformly in checked filesNed Batchelder2023-01-051-0/+2
|
* mypy: test helpers: conftest.py mixins.py osinfo.pyNed Batchelder2023-01-041-9/+12
|
* mypy: test_concurrency.py, test_python.pyNed Batchelder2023-01-031-9/+16
|
* refactor(test): use tmp_path instead of tmpdirNed Batchelder2023-01-031-3/+3
|
* mypy: add data.py and test_api.pyNed Batchelder2022-12-311-3/+5
|
* style: fix spellingNed Batchelder2022-11-281-1/+1
| | | | un-executed, white space, time stamp.
* test: remove file-removal that isn't needed anymoreNed Batchelder2022-05-201-3/+2
|
* test: properly reset a few globals between every testNed Batchelder2021-11-171-3/+2
|
* refactor(test): use the expected name for initializing tests.Ned Batchelder2021-11-071-5/+2
| | | | | | | | | Originally I used setup_test because something went wrong when I used setUp. I wrote https://github.com/pytest-dev/pytest/issues/8424 about it. There they say to use `-p no:nose` to disable nose interpretation. But now I simply went back to setUp, and all seems well? Not sure what changed, but using the expected name is better.
* refactor(test): os_sep and remove_tree helpersNed Batchelder2021-10-241-5/+2
|
* test: we don't need two sys.path restorersNed Batchelder2021-10-141-11/+2
|
* fix: source modules need to be re-imported. #1232Ned Batchelder2021-10-111-13/+4
|
* test: update to latest pytestNed Batchelder2021-05-021-1/+1
|
* 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-4/+2
|
* test: don't complain if an environment variable we don't want doesn't existNed Batchelder2021-04-111-1/+1
|
* refactor: make_file can be used as a functionNed Batchelder2021-03-221-39/+4
|
* refactor: simplify temp dir cd codeNed Batchelder2021-03-221-15/+10
|
* refactor: pull module cleaning into hereNed Batchelder2021-03-111-20/+56
| | | | We don't need unittest_mixins' module cleaner anymore.
* refactor: remove unused test class settingNed Batchelder2021-03-111-5/+0
| | | | | | | | | unittest_mixins would check that files got created if a test made a temporary directory, so that we could trim down making temp dirs needlessly. But we don't use unittest_mixins any more, so this setting does nothing. Remove it.
* test: simplify how StopEverything is converted to skipnedbat/remove-unittest-testcaseNed Batchelder2021-03-111-28/+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: use pytest.skip instead of unittest'sNed Batchelder2021-03-111-4/+3
|
* test: reduce use of unittestNed Batchelder2021-03-111-9/+122
|
* refactor: replace unittest_mixins.EnvironmentAwareMixin with a pytest adapterNed Batchelder2021-03-041-0/+18
|
* refactor: remove unittest.assertCountEqualNed Batchelder2021-02-061-1/+1
| | | | Another step toward removing unittest.TestCase.
* refactor: remove reliance on unittest_mixins.StdStreamCapturingMixinNed Batchelder2021-02-021-0/+31
| | | | This is another step toward removing unittest.TestCase as a base class.
* refactor: move test mixins to their own fileNed Batchelder2021-02-021-0/+39