black/tests
Nipunn Koorapati 92eeacc2e3
Use STDIN project in test_projects to ensure it runs quickly (#2575)
Existing test was actually running a full black-primer
run which could be slow. This goes from 8 seconds to
0.4 seconds on my machine.

Needed to move to top level scope to leverage the caplog
feature of pytest in order to test that the command line
was parsing the bogus arguments and dumping to stderr.
2021-10-30 11:54:43 -07:00
..
data blib2to3: support unparenthesized wulruses in more places (#2447) 2021-08-26 13:59:01 -07:00
__init__.py Remove deprecated use of 'setup.py test' (#1275) 2020-05-08 06:23:50 -07:00
conftest.py Use optional tests for "no_python2" to simplify local testing (#2203) 2021-05-07 15:03:13 +02:00
empty.toml Add --target-version option to allow users to choose targeted Python versions (#618) 2019-02-06 18:43:50 -08:00
optional.py Use optional tests for "no_python2" to simplify local testing (#2203) 2021-05-07 15:03:13 +02:00
test_black.py fix: allow tests to be run from (hopefully) any directory (GH-2574) 2021-10-30 11:50:45 -04:00
test_blackd.py re-implement simple CORS middleware for blackd (#2500) 2021-09-25 12:58:44 +01:00
test_format.py Add --projects cli flag to black-primer (#2555) 2021-10-27 11:31:34 -07:00
test_ipynb.py fix: allow tests to be run from (hopefully) any directory (GH-2574) 2021-10-30 11:50:45 -04:00
test_no_ipynb.py Jupyter notebook support (#2357) 2021-08-06 16:57:46 -04:00
test_primer.py Use STDIN project in test_projects to ensure it runs quickly (#2575) 2021-10-30 11:54:43 -07:00
test.toml Switch toml TOML library for tomli (#2301) 2021-07-12 16:01:38 -04:00
util.py Print out line diff on test failure (#2552) 2021-10-27 07:37:20 -07:00